[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/8/25 Carsten Klein : > > Carsten Klein added the comment: > > Thanks for the information. Where is this documented? I cannot find it in the > official Python docs... TIA. http://docs.python.org/dev/reference/datamodel.html#object.__new__ --

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-25 Thread Carsten Klein
Carsten Klein added the comment: Thanks for the information. Where is this documented? I cannot find it in the official Python docs... TIA. -- ___ Python tracker ___ ___

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Benjamin. I concur with your conclusion. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is correct. immutable types should use __new__, not __init__. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I can reproduce it in Python 3.1 and 3.2 I don't have a build of Python 2.7 handy at the moment to test it there. In Python 3.2 and 2.7, DeprecationWarnings are silenced by default. I had to start Python 3.2 with "-W always::DeprecationWarning" to see the

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the report. 2.6 is in security mode, it does not get bug fixes anymore. Can you reproduce the bug with 2.7, 3.1 and 3.2? -- components: +Interpreter Core -None nosy: +eric.araujo, rhettinger, stutzbach __

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-22 Thread Carsten Klein
New submission from Carsten Klein : Example class a(frozenset): def __init__(self, iterable): super(a, self).__init__(iterable) i = a([1,2,3]) > __main__:3: DeprecationWarning: object.__init__() takes no parameters > a([1, 2, 3]) This might be due to the fact that the frozenset t