[issue1581183] pickle protocol 2 failure on int subclass

2010-08-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1581183] pickle protocol 2 failure on int subclass

2010-07-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am going to close this as a duplicate of issue 1062277. The later has a patch, but Raymond questioned whether proposed feature is desirable. [msg47268] I am -1, but will look at the patch there. -- nosy: +rhettinger resolution: -> duplicate

[issue1581183] pickle protocol 2 failure on int subclass

2010-07-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Upon further investigation, I conclude that the problem is in the user code. I am attaching int_subclass_pickle_problem_fixed.py which fixes the user code as follows: def __getnewargs__(self): -return (int(self), self.an_enum) +ret

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17801/issue1581183-test.diff ___ Python tracker ___ ___ Python-bugs

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17800/issue1581183-test.diff ___ Python tracker ___ ___ Python-bu

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 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

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I reproduced the problem in py3k (both protocol 2 and 3). See issue1581183-test-py3k.py attached. -- nosy: +alexandre.vassalotti, belopolsky versions: +Python 3.2 Added file: http://bugs.python.org/file17798/issue1581183-test-py3k.py __

[issue1581183] pickle protocol 2 failure on int subclass

2009-03-30 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed on trunk, has tests. -- nosy: +ajaksu2 stage: -> needs patch title: pickle protocol 2 failure on int subclass -> pickle protocol 2 failure on int subclass type: -> behavior versions: +Python 2.6 ___ Pytho