Author pitrou
Recipients georg.brandl, ncoghlan, pitrou, sbt, serhiy.storchaka, vstinner
Date 2014-01-26.22:53:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390776811.2291.1.camel@fsol>
In-reply-to <2148515.ZNB7pLonG3@raxxla>
Content
> 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)
History
Date User Action Args
2014-01-26 22:53:34pitrousetrecipients: + pitrou, georg.brandl, ncoghlan, vstinner, sbt, serhiy.storchaka
2014-01-26 22:53:34pitroulinkissue19077 messages
2014-01-26 22:53:33pitroucreate