Message133880
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 do, this can cause problems later on.
The simplest solution would be to make these functions work like list.__add__. If you have two instances of some list subclass (foo and bar), type(foo.__add__(bar)) will just be list. |
|
Date |
User |
Action |
Args |
2011-04-16 05:29:55 | Robert.Burke | set | recipients:
+ Robert.Burke |
2011-04-16 05:29:55 | Robert.Burke | set | messageid: <1302931795.31.0.443472549499.issue11854@psf.upfronthosting.co.za> |
2011-04-16 05:29:53 | Robert.Burke | link | issue11854 messages |
2011-04-16 05:29:53 | Robert.Burke | create | |
|