]> granicus.if.org Git - python/commit
Bug #128475: mimetools.encode (sometimes) fails when called from a thread.
authorTim Peters <tim.peters@gmail.com>
Sun, 21 Jan 2001 03:40:37 +0000 (03:40 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 21 Jan 2001 03:40:37 +0000 (03:40 +0000)
commit384fd106e89ec859ace7c098620aad8ce2c2abaa
treec64de17c61b9e6b6f9fb77853611c544e1c6ac3d
parenteccd02a40d0921fc2953213e71da8a3a79d00e17
Bug #128475: mimetools.encode (sometimes) fails when called from a thread.
pythonrun.c:  In Py_Finalize, don't reset the initialized flag until after
the exit funcs have run.
atexit.py:  in _run_exitfuncs, mutate the list of pending calls in a
threadsafe way.  This wasn't a contributor to bug 128475, it just burned
my eyeballs when looking at that bug.
Lib/atexit.py
Python/pythonrun.c