Message54345
| 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:10 | admin | link | issue1092962 messages |
| 2007年08月23日 16:10:10 | admin | create |
|