Antoine Pitrou added the comment:
> Here are updated patches for 3.3 and 3.4. Changed tests for 3.4, a patch for
> 3.3 is changed more. Unfortunately in 3.3 exceptions still can be raised when
> try to emit a warning during shutdown. Is there any way to determine the
> shutdown mode?
There's nothing obvious, but a possible hack would be:
_is_shutdown = False
def _on_shutdown():
global _is_shutdown
_is_shutdown = True
atexit.register(_on_shutdown)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19077>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com