This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nascheme
Recipients hrnciar, hroncok, nascheme
Date 2021-03-02.19:43:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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
>>> 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:33naschemesetrecipients: + nascheme, hroncok, hrnciar
2021-03-02 19:43:33naschemesetmessageid: <>
2021-03-02 19:43:33naschemelinkissue43372 messages
2021-03-02 19:43:32naschemecreate