Message 211113 - Python tracker

Message211113

Author serhiy.storchaka
Recipients pitrou, python-dev, serhiy.storchaka, vstinner
Date 2014-02-12.19:42:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392234139.84.0.639325626045.issue20599@psf.upfronthosting.co.za>
In-reply-to
Content
> I (hope I) fixed the test, but in fact, the test showed another bug: print() cannot be used during Python exit in destructor. It means for example that Python may not be able to display errors at exit.

print() can be used during Python exit in destructor if destructor called before cleaning up the builtins and sys modules and encoding module with the encoding of sys.stdout.

Cleaning up the builtins and sys modules are delayed after wiping other modules, this decreases the chance of print() failure.
History
Date User Action Args
2014-02-12 19:42:19serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, python-dev
2014-02-12 19:42:19serhiy.storchakasetmessageid: <1392234139.84.0.639325626045.issue20599@psf.upfronthosting.co.za>
2014-02-12 19:42:19serhiy.storchakalinkissue20599 messages
2014-02-12 19:42:19serhiy.storchakacreate