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