]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-88116: Use a compact format to represent end line and column offsets. (GH-91666)
authorMark Shannon <mark@hotpy.org>
Thu, 21 Apr 2022 15:10:37 +0000 (16:10 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Apr 2022 15:10:37 +0000 (16:10 +0100)
commit944fffee8916cb94321fa33cd3a43f4108717746
treef88202dd13021ad5cf4b260ecf05ebab6015a5f6
parent2a5f171759a31597032cfe52646929e6f8727243
GH-88116: Use a compact format to represent end line and column offsets. (GH-91666)

* Stores all location info in linetable to conform to PEP 626.

* Remove column table from code objects.

* Remove end-line table from code objects.

* Document new location table format
20 files changed:
Include/cpython/code.h
Include/internal/pycore_code.h
Lib/importlib/_bootstrap_external.py
Lib/test/test_code.py
Lib/test/test_compile.py
Lib/test/test_dis.py
Lib/test/test_exceptions.py
Lib/test/test_marshal.py
Lib/test/test_traceback.py
Misc/NEWS.d/next/Core and Builtins/2022-04-18-15-22-56.bpo-43950.qrTvWL.rst [new file with mode: 0644]
Objects/clinic/codeobject.c.h
Objects/codeobject.c
Objects/frameobject.c
Objects/locations.md [new file with mode: 0644]
Programs/test_frozenmain.h
Python/compile.c
Python/marshal.c
Tools/gdb/libpython.py
Tools/scripts/deepfreeze.py
Tools/scripts/umarshal.py