Message383741
>>> def f(): pass
...
>>> co = f.__code__.replace(co_linetable=b'')
>>> import dis
>>> dis.dis(co)
python: Objects/codeobject.c:1185: PyLineTable_NextAddressRange: Assertion `!at_end(range)' failed.
Aborted (core dumped)
It is expected that executing bogus code object can crash (or cause any other effect). But it is surprising that just inspecting it causes a crash. |
|
Date |
User |
Action |
Args |
2020-12-25 11:55:59 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, Mark.Shannon |
2020-12-25 11:55:58 | serhiy.storchaka | set | messageid: <1608897358.97.0.834158885511.issue42739@roundup.psfhosted.org> |
2020-12-25 11:55:58 | serhiy.storchaka | link | issue42739 messages |
2020-12-25 11:55:58 | serhiy.storchaka | create | |
|