]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43950: Print columns in tracebacks (PEP 657) (GH-26958)
authorAmmar Askar <ammar@ammaraskar.com>
Sun, 4 Jul 2021 23:14:33 +0000 (19:14 -0400)
committerGitHub <noreply@github.com>
Sun, 4 Jul 2021 23:14:33 +0000 (00:14 +0100)
commit5644c7b3ffd49bed58dc095be6e6148e0bb4431e
treec53063e2f78685d1f284f6e333e05f44e49ea5ca
parent693cec0e2dcafa393ed5cdaa606f8dc8e3876adf
bpo-43950: Print columns in tracebacks (PEP 657) (GH-26958)

The traceback.c and traceback.py mechanisms now utilize the newly added code.co_positions and PyCode_Addr2Location
to print carets on the specific expressions involved in a traceback.

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
12 files changed:
Doc/library/traceback.rst
Include/cpython/traceback.h
Lib/idlelib/idle_test/test_run.py
Lib/test/test_cmd_line_script.py
Lib/test/test_doctest.py
Lib/test/test_traceback.py
Lib/test/test_zipimport.py
Lib/traceback.py
Parser/pegen.c
Parser/pegen.h
Python/_warnings.c
Python/traceback.c