[issue30275] pickle doesn't work in compile/exec

Brett Cannon report at bugs.python.org
Fri May 5 17:20:27 EDT 2017


Brett Cannon added the comment:

It won't work without the global namespace as pickle needs to be able to figure out where the function lives (the function itself doesn't get pickled, just the name of the function).

----------
nosy: +brett.cannon
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30275>
_______________________________________


More information about the Python-bugs-list mailing list