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 alexandre.vassalotti
Recipients alexandre.vassalotti, cool-RR, pitrou, terry.reedy
Date 2011-02-25.22:02:07
SpamBayes Score 0.004350714
Marked as misclassified No
Message-id <1298671329.7.0.136069006284.issue11299@psf.upfronthosting.co.za>
In-reply-to
Content
Although, I would really like to see support of pickling generators. It is not really possible in CPython. This is recurrent request. I even wrote a small article about it.

http://peadrop.com/blog/2009/12/29/why-you-cannot-pickle-generators/

Looking how PyPy did it, I see portability problems with the fact it dumps the byte-code of the generator to disk. Python's documentation clearly states that the byte-code is an implementation details and can (and does) change between releases. Hence, this method is not really suitable for pickle which needs to remain compatible across releases.
History
Date User Action Args
2011-02-25 22:02:09alexandre.vassalottisetrecipients: + alexandre.vassalotti, terry.reedy, pitrou, cool-RR
2011-02-25 22:02:09alexandre.vassalottisetmessageid: <1298671329.7.0.136069006284.issue11299@psf.upfronthosting.co.za>
2011-02-25 22:02:08alexandre.vassalottilinkissue11299 messages
2011-02-25 22:02:07alexandre.vassalotticreate