This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author habnabit
Recipients alexandre.vassalotti, habnabit, jcea, pitrou, schmir, tleeuwenburg@gmail.com
Date 2009-04-08.22:41:17
SpamBayes Score 6.1056715e-13
Marked as misclassified No
Message-id <1239230483.95.0.726454779372.issue3119@psf.upfronthosting.co.za>
In-reply-to
Content
Okay, here's a new version for the py3k trunk. I'm assuming that this is 
not going to make it into 2.x at all, because of the API changes. This 
patch only touches the python version of the code and adds a unit test 
for testing whether pickle works with arbitrary nesting depth in 
test.pickletest. The test is disabled for the C pickle tests currently, 
since it causes python to run out of stack space and crash.

So, does _pickle.Pickler's API need to be changed as well? Right now, 
pickle._Pickler.dump expects save (and save expects the other save_* 
methods) to either return None or an iterable, where the iterable yields 
either None or further iterables. I'm sure it wouldn't be hard to make 
_pickle.Pickler.dump work the same way, but since C doesn't have 
generators, I don't know how exactly the API would translate.
History
Date User Action Args
2009-04-08 22:41:24habnabitsetrecipients: + habnabit, jcea, pitrou, alexandre.vassalotti, schmir, tleeuwenburg@gmail.com
2009-04-08 22:41:23habnabitsetmessageid: <1239230483.95.0.726454779372.issue3119@psf.upfronthosting.co.za>
2009-04-08 22:41:22habnabitlinkissue3119 messages
2009-04-08 22:41:21habnabitcreate