]> granicus.if.org Git - python/commit
Fix bug where a KeyError was raised if -O was being used for the interpreter
authorBrett Cannon <bcannon@gmail.com>
Wed, 21 Jul 2004 02:21:58 +0000 (02:21 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 21 Jul 2004 02:21:58 +0000 (02:21 +0000)
commit8b3d92a9777d7ea5805c5e3cf0d6b0474fab2d01
treeb43d1ba3f7c88cb17bd52859ed7aaacd8d17a2ff
parent7728b4719e08cb64d4c77051338c2b54a57b867e
Fix bug where a KeyError was raised if -O was being used for the interpreter
and Thread.__delete() was called after a Thread instance was created.  Problem
resulted from a currentThread() call in an 'assert' statement being optimized
out and dummy_thread.get_ident() always returning -1 and thus overwriting the
entry for the _MainThread() instance created in 'threading' at import time.

Closes bug #993394.
Lib/threading.py
Misc/NEWS