Message54345
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). |
|
Date |
User |
Action |
Args |
2007-08-23 16:10:10 | admin | link | issue1092962 messages |
2007-08-23 16:10:10 | admin | create | |
|