summaryrefslogtreecommitdiffstats
path: root/Python/Python-tokenize.c
diff options
context:
space:
mode:
authorJohn Belmonte <john@neggie.net>2022-07-11 11:27:29 (GMT)
committerGitHub <noreply@github.com>2022-07-11 11:27:29 (GMT)
commit45896f2a02f02f296d14cccd6959179ccd47e410 (patch)
tree0aae343b626ad11110716e5a3eddf9aba94d104c /Python/Python-tokenize.c
parentf3212b1ec7a70b69f44acd763221463a69beee4f (diff)
downloadcpython-45896f2a02f02f296d14cccd6959179ccd47e410.zip
cpython-45896f2a02f02f296d14cccd6959179ccd47e410.tar.gz
cpython-45896f2a02f02f296d14cccd6959179ccd47e410.tar.bz2
[3.11] gh-93883: elide traceback indicators when possible (GH-93994) (GH-94740)
Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws more attention to the remaining (very relevant) indicators. Example: ``` Traceback (most recent call last): File "query.py", line 99, in <module> bar() File "query.py", line 66, in bar foo() File "query.py", line 37, in foo magic_arithmetic('foo') File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ File "query.py", line 24, in add_counts return 25 + query_user(user1) + query_user(user2) ^^^^^^^^^^^^^^^^^ File "query.py", line 32, in query_user return 1 + query_count(db, response['a']['b']['c']['user'], retry=True) ~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable ``` Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions