New submission from Alex Samuel [EMAIL PROTECTED]:
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
Mark Dickinson [EMAIL PROTECTED] added the comment:
The bug is that the set operations return instances of the subclass,
rather than instances of set.
This is already fixed for 3.0: see issue 1721812. It was deemed too risky
to backport the change to 2.x.
--
assignee: theller -
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Well, this was changed only three days ago.
Please wait for the next 3.0rc3...
--
nosy: +amaury.forgeotdarc
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4357