On 2021-05-11 16:12, Guido van Rossum wrote:
On Tue, May 11, 2021 at 4:07 PM Gregory P. Smith <[email protected] There's a difference between tracebacks dumped as plain text (utf-8) bytraceback.print_exc() appearing on stderr or directed into log files and what can be displayed within a terminal. It is highly unusual to emit terminal control characters into log files.And yet it happens all the time. :-( Let's not risk that happening.
os.isatty() is helpful in that situation, no? -Mike _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/QT2CTAPV7BVUHEUR6OY6DKWTNX6WM5MF/ Code of Conduct: http://python.org/psf/codeofconduct/
