Peter Otten <__pete...@web.de> added the comment:
[Andrius] > So it is not possible to consistently manage stderr when it involves > > logging library without explicitly "manage" it? That's what I think, at least from within a script. To me redirect_xxx() always looked like a workaround to have old code write to a destination that was unforeseen in the initial design. I prefer dump_stuff(dest) to with redirect_stdout(dest): dump_stuff() That said -- do you have a suggestion how the logging library could be adapted to work smoothly with redirect_xxx()? (A compelling use case would also be nice, but note that I'm not the one who makes the decisions.) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36193> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com