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 <rep...@bugs.python.org>
<http://bugs.python.org/issue26789>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to