[issue4236] Crash when importing builtin module during interpreter shutdown

Brett Cannon report at bugs.python.org
Wed Nov 19 23:27:23 CET 2008


Brett Cannon <brett at python.org> added the comment:

I don't think there is anything to fix here beyond the docs for __del__.
You should never expect anything to be working in __del__, and that
includes the import machinery. It should be bare-bones, not trying to
pull in new code!

I have attached a patch which tries to clarify this fact in the language
docs for __del__.

Added file: http://bugs.python.org/file12066/clarify___del__.diff

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


More information about the Python-bugs-list mailing list