sys.is_finalizing()
Return True if the Python interpreter is shutting down, False otherwise.
True
False
New in version 3.5.
Please login to continue.
Please login to continue.