[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-16 Thread Robert Burke
Robert Burke added the comment: I've only observed this in 2.6. Does 2.6 not belong in the bug's versions list if 2.7 is also affected? -- ___ Python tracker <http://bugs.python.o

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2011-04-15 Thread Robert Burke
Changes by Robert Burke : -- title: __or__, __and__, __sub__, and __xor__ instantiate subclass of set without calling __init__ -> __or__ et al instantiate subclass of set without calling __init__ ___ Python tracker <http://bugs.pyth

[issue11854] __or__, __and__, __sub__, and __xor__ instantiate subclass of set without calling __init__

2011-04-15 Thread Robert Burke
New submission from Robert Burke : If you create a subclass of set but do not override __or__, __and__, __xor__, and __sub__, calling these functions will yield a new instance of your subclass. The new instance will never have __init__ called on it. Depending on what you expect __init__ to