]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42739: Don't use sentinels to mark end of line table. (GH-25657)
authorMark Shannon <mark@hotpy.org>
Thu, 29 Apr 2021 12:12:51 +0000 (13:12 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Apr 2021 12:12:51 +0000 (13:12 +0100)
commitc76da79b37d2bcbe575cc927ba0a9b7a9ce465db
treecf5e884131b3f44f038355ff4980cfbb97a6e228
parent53dd6c99b39d90935c00bc1558582e494641248e
bpo-42739: Don't use sentinels to mark end of line table. (GH-25657)

* Add length parameter to PyLineTable_InitAddressRange and doen't use sentinel values at end of table. Makes the line number table more robust.

* Update PyCodeAddressRange to match PEP 626.
13 files changed:
Include/cpython/code.h
Lib/ctypes/test/test_values.py
Lib/importlib/_bootstrap_external.py
Lib/test/test_code.py
Lib/test/test_dis.py
Misc/NEWS.d/next/Core and Builtins/2021-04-27-10-59-10.bpo-42739.PrVkKM.rst [new file with mode: 0644]
Objects/codeobject.c
Objects/lnotab_notes.txt
Python/compile.c
Python/frozen_hello.h
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h