Marien Zwart added the comment:

I'm afraid I don't have real-world code I can confirm is fixed, since I 
reported this on behalf of someone on irc in #python.

I think I'd prefer the Py_FatalError version of the patch. It's definitely 
possible to see writes to stdout/stderr at this time. If I read the first 
version right, it'll succeed the ENTER_BUFFERED without actually grabbing the 
lock, which seems problematic. But failing ENTER_BUFFERED is probably also more 
problematic, as it will probably lead to another exception that Python'll try 
to write to stderr, which fails the same way... If stdout/stderr are in a 
broken state during shutdown, Python is probably better off calling 
Py_FatalError rather than intermittently discarding messages.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23309>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to