diff options
author | Batuhan Taskaya <batuhan@python.org> | 2021-07-12 19:32:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 19:32:33 (GMT) |
commit | 1890dd235f618d60c938f6904d2e1a8a56f99c1c (patch) | |
tree | 48aae356623a4647892f3dde5edcd8949a87b23e /Doc/library | |
parent | da2e673c53974641a0e13941950e7976bbda64d5 (diff) | |
download | cpython-1890dd235f618d60c938f6904d2e1a8a56f99c1c.zip cpython-1890dd235f618d60c938f6904d2e1a8a56f99c1c.tar.gz cpython-1890dd235f618d60c938f6904d2e1a8a56f99c1c.tar.bz2 |
bpo-43950: Specialize tracebacks for subscripts/binary ops (GH-27037)
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/traceback.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst index 1961b9a..be1f43e 100644 --- a/Doc/library/traceback.rst +++ b/Doc/library/traceback.rst @@ -473,7 +473,7 @@ The output for the example would look similar to this: ['Traceback (most recent call last):\n', ' File "<doctest default[0]>", line 10, in <module>\n lumberjack()\n ^^^^^^^^^^^^\n', ' File "<doctest default[0]>", line 4, in lumberjack\n bright_side_of_death()\n ^^^^^^^^^^^^^^^^^^^^^^\n', - ' File "<doctest default[0]>", line 7, in bright_side_of_death\n return tuple()[0]\n ^^^^^^^^^^\n', + ' File "<doctest default[0]>", line 7, in bright_side_of_death\n return tuple()[0]\n ~~~~~~~^^^\n', 'IndexError: tuple index out of range\n'] *** extract_tb: [<FrameSummary file <doctest...>, line 10 in <module>>, @@ -482,7 +482,7 @@ The output for the example would look similar to this: *** format_tb: [' File "<doctest default[0]>", line 10, in <module>\n lumberjack()\n ^^^^^^^^^^^^\n', ' File "<doctest default[0]>", line 4, in lumberjack\n bright_side_of_death()\n ^^^^^^^^^^^^^^^^^^^^^^\n', - ' File "<doctest default[0]>", line 7, in bright_side_of_death\n return tuple()[0]\n ^^^^^^^^^^\n'] + ' File "<doctest default[0]>", line 7, in bright_side_of_death\n return tuple()[0]\n ~~~~~~~^^^\n'] *** tb_lineno: 10 |