[issue4236] Crash when importing builtin module during interpreter shutdown
STINNER Victor
report at bugs.python.org
Fri Oct 31 02:24:27 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Here is a patch fixing this issue: set builtins._=None at exit.
The new introduced function, PyRun_InteractiveCleanup(), might also be
called at the end of other functions like PyRun_InteractiveOne() or
PyRun_InteractiveOneFlags(). If not, PyRun_InteractiveCleanup() should
be exported.
----------
keywords: +patch
Added file: http://bugs.python.org/file11914/interactive_cleanup.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4236>
_______________________________________
More information about the Python-bugs-list
mailing list