Author belopolsky
Recipients ajaksu2, alexandre.vassalotti, andersjm, belopolsky
Date 2010-06-29.15:42:32
SpamBayes Score 1.19552e-06
Marked as misclassified No
Message-id <1277826156.81.0.273220245227.issue1581183@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-06-29 15:42:37belopolskysetrecipients: + belopolsky, andersjm, ajaksu2, alexandre.vassalotti
2010-06-29 15:42:36belopolskysetmessageid: <1277826156.81.0.273220245227.issue1581183@psf.upfronthosting.co.za>
2010-06-29 15:42:35belopolskylinkissue1581183 messages
2010-06-29 15:42:34belopolskycreate