[Python-Dev] Re: Future PEP: Include Fine Grained Error Locations in Tracebacks

2021年5月12日 18:07:26 -0700

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) by
 traceback.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/

Reply via email to