Serhiy Storchaka added the comment:

There are some questions.

1. Is there a reason only name is closed, not dunder_name? (Josh's question, 
but I'm interesting too).

2. Is it worth to first replace standard streams with "standard printers", and 
then close original streams? This allows to log warnings from closing streams.

3. "standard printers" are used at startup and at shutdown. Can we reuse some 
code? Or save and reuse "standard printers"?

4. Daemons close standard streams and fileno(stdout) can return unrelevant 
value. Perhaps it is not good idea to recreate closed stdout.

----------

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

Reply via email to