[issue11299] Allow deepcopying and pickling paused generators
report at bugs.python.org
Sat Feb 26 10:59:18 CET 2011
Ram Rachum <cool-rr at cool-rr.com> added the comment:
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>
More information about the Python-bugs-list