mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
53dd6c99b3
commit
c76da79b37
13 changed files with 4968 additions and 4986 deletions
|
@ -172,7 +172,7 @@ def bug42562():
|
|||
|
||||
|
||||
# Set line number for 'pass' to None
|
||||
bug42562.__code__ = bug42562.__code__.replace(co_linetable=b'\x04\x80\xff\x80')
|
||||
bug42562.__code__ = bug42562.__code__.replace(co_linetable=b'\x04\x80')
|
||||
|
||||
|
||||
dis_bug42562 = """\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue