mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
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
This commit is contained in:
parent
2a5f171759
commit
944fffee89
20 changed files with 859 additions and 539 deletions
|
@ -2658,7 +2658,7 @@ class PEP626Tests(unittest.TestCase):
|
|||
def f():
|
||||
1/0
|
||||
self.lineno_after_raise(f, 1)
|
||||
f.__code__ = f.__code__.replace(co_linetable=b'\x04\x80\xff\x80')
|
||||
f.__code__ = f.__code__.replace(co_linetable=b'\xf8\xf8\xf8\xf9\xf8\xf8\xf8')
|
||||
self.lineno_after_raise(f, None)
|
||||
|
||||
def test_lineno_after_raise_in_with_exit(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue