• Brett Cannon's avatar
    Fix bug where a KeyError was raised if -O was being used for the interpreter · 8b3d92a9
    Brett Cannon authored
    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.
    8b3d92a9
NEWS 185 KB