[issue1596321] KeyError at exit after 'import threading' in other thread

Craig McQueen report at bugs.python.org
Fri Jul 2 04:59:11 CEST 2010


Craig McQueen <python at craig.mcqueen.id.au> added the comment:

A follow-on re the cx_Freeze issue: I looked at the source code, and found it doesn't seem to be doing any thread creation. But I found that in the initscripts/Console.py, there are the following lines:

    if sys.version_info[:2] >= (2, 5):
        module = sys.modules.get("threading")
        if module is not None:
            module._shutdown()

If these lines are commented-out, then the error message at exit does not occur.

----------

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


More information about the Python-bugs-list mailing list