◐ Shell
clean mode source ↗

bpo-19466: Py_Finalize() clears daemon threads earlier by vstinner · Pull Request #18848 · python/cpython

@vstinner vstinner changed the title bpo-19466: Py_Finalize() clears daemon threads earlier [WIP] bpo-19466: Py_Finalize() clears daemon threads earlier

Mar 8, 2020

aeros

Clear the frames of daemon threads earlier during the Python shutdown to
call objects destructors. So "unclosed file" resource warnings are now
emitted for daemon threads in a more reliable way.

Cleanup _PyThreadState_DeleteExcept() code: rename "garbage" to
"list".

@vstinner vstinner changed the title [WIP] bpo-19466: Py_Finalize() clears daemon threads earlier bpo-19466: Py_Finalize() clears daemon threads earlier

Mar 9, 2020

@vstinner vstinner deleted the finalize_daemon_threads branch

March 9, 2020 22:37