◐ Shell
clean mode source ↗

gh-108014: Add Py_IsFinalizing() function by vstinner · Pull Request #108032 · python/cpython

I copied the documentation of the sys.is_finalizing() function. If you want a different feature (pass an interpreter), I would prefer to have a different function.

It's set by Py_Finalize() which finalizes the main interpreter: other sub-interpreters should be deleted before explicitly, no?