mirror of
https://github.com/python/cpython.git
synced 2026-05-16 17:38:22 -04:00
fde9b33dfe
Calling these function from a thread when the runtime is finalizing will terminate the thread, even if the thread was not created by Python. Users can use _Py_IsFinalizing or sys.is_finalizing to check if the interpreter is in the process of being finalized before calling this function to avoid unwanted termination.