mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-42246: Partial implementation of PEP 626. (GH-23113)
* Implement new line number table format, as defined in PEP 626.
This commit is contained in:
parent
cda99b4022
commit
877df851c3
19 changed files with 5364 additions and 5000 deletions
|
@ -258,7 +258,7 @@ class CodeTest(unittest.TestCase):
|
|||
("co_cellvars", ("cellvar",)),
|
||||
("co_filename", "newfilename"),
|
||||
("co_name", "newname"),
|
||||
("co_lnotab", code2.co_lnotab),
|
||||
("co_linetable", code2.co_linetable),
|
||||
):
|
||||
with self.subTest(attr=attr, value=value):
|
||||
new_code = code.replace(**{attr: value})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue