This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexhsamuel
Recipients alexhsamuel, theller
Date 2008-11-19.17:41:27
SpamBayes Score 4.650609e-06
Marked as misclassified No
Message-id <1227116488.66.0.564572723144.issue4357@psf.upfronthosting.co.za>
In-reply-to
Content
Methods of set and frozenset that return new set or frozenset instances
return instances of subclasses, but these instances are not initialized
correctly.  In the attached code sample, z is an instance of MySet but
MySet.__new__ and MySet.__init__ are never called on it.  

It seems to me that such a method should return a fully-initialized
instance of the subclass.  Barring that, it should just return a set or
frozenset instance, not an instance of the subclass.
History
Date User Action Args
2008-11-19 17:41:28alexhsamuelsetrecipients: + alexhsamuel, theller
2008-11-19 17:41:28alexhsamuelsetmessageid: <1227116488.66.0.564572723144.issue4357@psf.upfronthosting.co.za>
2008-11-19 17:41:28alexhsamuellinkissue4357 messages
2008-11-19 17:41:27alexhsamuelcreate