Another alternative is instead of

File blah.py line 3:
    return x/0
              ^^^

to have

File blah.py line 3 cols 12-14:
              x/0


On Mon, May 10, 2021 at 11:12 AM Steven D'Aprano <st...@pearwood.info>
wrote:

> On Mon, May 10, 2021 at 05:34:12AM -0400, Terry Reedy wrote:
> > On 5/10/2021 3:28 AM, M.-A. Lemburg wrote:
> >
> > >I'm mostly thinking of tracebacks which go >10 levels deep, which is
> > >rather common in larger applications. For those tracebacks, the top
> > >entries are mostly noise you never look at when debugging. The proposal
> > >now adds another 10 extra lines to jump over :-)
> >
> > If the slice were instead marked with color tagging, as I hope will be
> > possible in IDLE and other IDEs, then no extra lines well be needed
>
> That's great for people using IDLE, but for those using the vanilla
> Python interpreter, M-A.L makes a good point about increasing the
> vertical size of the traceback which will almost always be ignored.
>
> Its especially the case for beginners. Its hard enough to get newbies to
> read *any* of the traceback. Anything which increases the visual noise
> of that is going to make it harder.
>
>
> --
> Steve
> _______________________________________________
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/3ADVDPF4Z5DMXKG2CMJ3JTIN2SC76AUC/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/YWNDAKU7RYBFWCRMXK3UZEYFE7NLUSNY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to