[issue17408] second python execution fails when embedding
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Mar 13 16:15:18 CET 2013
Amaury Forgeot d'Arc added the comment:
Reproduced on Linux.
The reason is in Objects/typeobject.c: import_copyreg() has a static cache of the copyreg module.
When the interpreter stops, the module is filled with None... but gets reused in the next instance.
Resetting this "mod_copyreg" variable to NULL fixes the issue.
pickle is also broken for the same reason.
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17408>
_______________________________________
More information about the Python-bugs-list
mailing list