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

2021年5月11日 15:33:00 -0700

On 5/11/21 1:57 AM, Baptiste Carvello wrote:
Le 11/05/2021 à 09:35, Steven D'Aprano a écrit :
On Mon, May 10, 2021 at 09:44:05PM -0400, Terry Reedy wrote:
The vanilla interpreter could be updated to recognize when it is running
on a similated 35-year-old terminal that implements ansi-vt100 color
codes rather than a similated 40+-year-old black-and-white teletype-like
terminal.
This is what is called "scope creep", although in this case
perhaps "scope gallop" is more appropriate *wink*
[...]
Also: people paste tracebacks into issue reports, so all information has
to survive copy-pasting.
The first ANSI standard supported underlined text, didn't it? The VT100 did. That would make it part of the 40+ year old subset from the late 70's. While color might stand out more, underline suits the problem well, also without increasing the line count. There are a number of terminal emulators that support rich text copies, but not all of them. This is added information however, so it not being copy-pastable everywhere shouldn't be a blocking requirement imho.
-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/W44D2BWWICNJTWPQOZUWVQEIJ6T3QWYM/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to