Alexandre Vassalotti <alexan...@peadrop.com> added the comment:

The value of the instruction pointer depends on the byte-code. So it's not 
portable either.

But, the bigger issue is the fact generator objects do not have names we can 
refer to, unlike top-level functions and classes which pickle supports. 
Similarly, we can't pickle lambdas and nested-functions for this exact reason.

Personally, I haven't found a way around this. But, that doesn't mean there 
isn't one. If you find one, I will more than pleased to review it.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to