[issue42422] types.CodeType() has no bytecode verifier

STINNER Victor report at bugs.python.org
Tue Dec 8 02:55:05 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> You may use https://bytecode.readthedocs.io/ which might help to write more portable code, (...)

Ah, I didn't notice that at the beginning of the documentation, you can see that even a very simple loop has a different bytecode before and after Python 3.8:

"Python 3.8 removed SETUP_LOOP"
https://bytecode.readthedocs.io/en/latest/usage.html#simple-loop

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42422>
_______________________________________


More information about the Python-bugs-list mailing list