[issue40315] Incorrect stacksize in code object
Serhiy Storchaka
report at bugs.python.org
Sat Apr 18 03:21:28 EDT 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
The stack size is correct. The unreachable code is left because some code (in particularly the lineno setter of the frame object) depends on instructions which may be in the unreachable code to determines the boundaries of programming blocks. It is safer to keep some unreachable code.
You can just ignore the code which uses the stack past co_stacksize.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40315>
_______________________________________
More information about the Python-bugs-list
mailing list