[issue26789] Please do not log during shutdown

Vinay Sajip report at bugs.python.org
Wed Feb 22 02:53:45 EST 2017


Vinay Sajip added the comment:

> sys.is_finalizing()

Good to know. Is the "sys" binding guaranteed to be around even when other builtins like "open" aren't available? In order to handle things "nicely" during shutdown, what guarantees can logging code rely on in terms of what's available? I'm assuming handling things nicely doesn't mean just swallowing any exceptions raised.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26789>
_______________________________________


More information about the Python-bugs-list mailing list