diff options
author | John Belmonte <john@neggie.net> | 2022-07-11 11:27:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 11:27:29 (GMT) |
commit | 45896f2a02f02f296d14cccd6959179ccd47e410 (patch) | |
tree | 0aae343b626ad11110716e5a3eddf9aba94d104c /Doc/whatsnew | |
parent | f3212b1ec7a70b69f44acd763221463a69beee4f (diff) | |
download | cpython-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 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 97ad5b3..a5b9c31 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -117,7 +117,6 @@ when dealing with deeply nested dictionary objects and multiple function calls, Traceback (most recent call last): File "query.py", line 37, in <module> magic_arithmetic('foo') - ^^^^^^^^^^^^^^^^^^^^^^^ File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ |