[issue45063] PEP 657 Fine Grained Error Locations: omit indicators if they are one the whole line, to make tracebacks shorter
STINNER Victor
report at bugs.python.org
Tue Aug 31 17:29:08 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
> I don't follow what you want to change in 3.10.0 final, PEP 657 is for Python 3.11. Can you clarify?
Ah, I thaught that the PEP was implemented in 3.10, I didn't notice that it's a new feature of Python 3.11 :-)
> Regarding the issue: I understand what you mean but I don't think we should get into suppressing the indicators in special situations.
In my example, there are 6 frames. The indicators cover the whole line of 3 frames: 50%. It's a common case, it's not special.
Python tracebacks are already very verbose: a single exception can easily take 20-30 lines. It's worse for chained exceptions. Python 3.11 makes it worse: up to 1.5x longer.
----------
priority: release blocker ->
title: PEP 657 Fine Grained Error Locations: make the traceback less verbose when possible -> PEP 657 Fine Grained Error Locations: omit indicators if they are one the whole line, to make tracebacks shorter
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45063>
_______________________________________
More information about the Python-bugs-list
mailing list