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-26.16:03:21
SpamBayes Score 9.107216e-10
Marked as misclassified No
Message-id <1298736218.15.0.74616521234.issue11299@psf.upfronthosting.co.za>
In-reply-to
Content
The value of the instruction pointer depends on the byte-code. So it's not portable either.

But, the bigger issue is the fact generator objects do not have names we can refer to, unlike top-level functions and classes which pickle supports. Similarly, we can't pickle lambdas and nested-functions for this exact reason.

Personally, I haven't found a way around this. But, that doesn't mean there isn't one. If you find one, I will more than pleased to review it.
History
Date User Action Args
2011-02-26 16:03:38alexandre.vassalottisetrecipients: + alexandre.vassalotti, terry.reedy, pitrou, cool-RR
2011-02-26 16:03:38alexandre.vassalottisetmessageid: <1298736218.15.0.74616521234.issue11299@psf.upfronthosting.co.za>
2011-02-26 16:03:21alexandre.vassalottilinkissue11299 messages
2011-02-26 16:03:21alexandre.vassalotticreate