Message108912
At least part of the problem has nothing to do with subclassing from int and instead is related to pickling objects with circular references.
I am attaching a patch that demonstrates the problem. In issue1581183-test.diff, I modified memoize so that it does nothing rather than fails an assert if object is already in the memo. This makes python and C implementations behave the same, but still fail to produce correct results. Pickling with protocol 2 break circular reference and instead creates two independent objects. |
|
Date |
User |
Action |
Args |
2010-06-29 15:42:37 | belopolsky | set | recipients:
+ belopolsky, andersjm, ajaksu2, alexandre.vassalotti |
2010-06-29 15:42:36 | belopolsky | set | messageid: <1277826156.81.0.273220245227.issue1581183@psf.upfronthosting.co.za> |
2010-06-29 15:42:35 | belopolsky | link | issue1581183 messages |
2010-06-29 15:42:34 | belopolsky | create | |
|