homepage

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 jaysonvantuyl
Recipients
Date 2004年12月29日.21:52:55
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Would it be possible to make generators pickle-able? I
mean, currently the internal state is saved in some
way. Would it be possible to make pickle handle them?
Put another way, if generators had a __getnewargs__
function that returned some data (say a tuple of module
name, function name, locals/globals dicts and some code
dependent location data) and then allow:
 generator.__new__(statedata)
to reconstruct it (or something more elegant).
History
Date User Action Args
2007年08月23日 16:10:10adminlinkissue1092962 messages
2007年08月23日 16:10:10admincreate

AltStyle によって変換されたページ (->オリジナル) /