[issue11299] Allow deepcopying and pickling paused generators
Ram Rachum
report at bugs.python.org
Sat Feb 26 10:59:18 CET 2011
Ram Rachum <cool-rr at cool-rr.com> added the comment:
Hi Alexandre,
I read your blog post, but I don't understand-- Why does bytecode need to be pickled in order to pickle live generators? I understand that the local variables need to be pickled, (and let's assume they're all pickleable,) and that a pointer to the current instruction needs to be pickled, but why the bytecode? When you pickle a normal function or a class, no bytecode gets pickled, so why does it have to be pickled here?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11299>
_______________________________________
More information about the Python-bugs-list
mailing list