Message209363
> 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) |
|
Date |
User |
Action |
Args |
2014-01-26 22:53:34 | pitrou | set | recipients:
+ pitrou, georg.brandl, ncoghlan, vstinner, sbt, serhiy.storchaka |
2014-01-26 22:53:34 | pitrou | link | issue19077 messages |
2014-01-26 22:53:33 | pitrou | create | |
|