Message387956
I believe the line table format got changed but the frozen code didn't get re-generated. If you try to call co_lines() on the __hello__ code, Python crashes.
>>> import __hello__
Hello world!
>>> co = __hello__.__spec__.loader.get_code('__hello__')
>>> co.co_linetable
b'\x04\x01'
>>> list(co.co_lines())
python: ../Objects/codeobject.c:1185: PyLineTable_NextAddressRange: Assertion `!at_end(range)' failed.
My PR re-generates the code and fixes the test. Perhaps I should also add a test to exercise co_lines() on the frozen code object. |
|
Date |
User |
Action |
Args |
2021-03-02 19:43:33 | nascheme | set | recipients:
+ nascheme, hroncok, hrnciar |
2021-03-02 19:43:33 | nascheme | set | messageid: <1614714213.15.0.911401876104.issue43372@roundup.psfhosted.org> |
2021-03-02 19:43:33 | nascheme | link | issue43372 messages |
2021-03-02 19:43:32 | nascheme | create | |
|