]> granicus.if.org Git - python/commit
#1733757: the interpreter would hang on shutdown, if the function set by sys.settrace
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 3 Apr 2008 23:07:55 +0000 (23:07 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 3 Apr 2008 23:07:55 +0000 (23:07 +0000)
commitd7a265129c292f2a50d3daefd8a133fe97a3bf78
treec8e883142a0aad5d036b03c2eb824640b2377f0f
parent2aae1d92ebf442b08efce2bc5d090d70fb92e525
#1733757: the interpreter would hang on shutdown, if the function set by sys.settrace
calls threading.currentThread.

The correction somewhat improves the code, but it was close.
Many thanks to the "with" construct, which turns python code into C calls.

I wonder if it is not better to sys.settrace(None) just after
running the __main__ module and before finalization.
Lib/test/test_threading.py
Lib/threading.py
Misc/NEWS