Gregory P. Smith <g...@krypto.org> added the comment:

The logging library has never guaranteed that it wouldn't interleave or 
duplicate buffered io output when fork() in involved.  We should not start 
trying to claim that it does.  Too complicated and fragile.  It can't.  Users 
who want that should implement their own single logging handler that is well 
behaved in whatever regards they need.  there are a ton of options for them.

A basicConfig setting to switch the mode of operation to a single lock instead 
of per-handler locks could only happen in 3.8 (new feature).  I'll ponder if it 
is even feasible to add that after the re-init change goes in.  Even with such 
a feature, library user authored Handler subclasses would always be free to 
violate that.  We can't protect people from themselves.

----------

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

Reply via email to