Mark Shannon <m...@hotpy.org> added the comment:
127 and 48 aren't instructions. >>> opcode.stack_effect(48) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid opcode or oparg So the output from dis seems correct. >If not, how would it deal with co_code being modified? The co_code attribute is immutable and read only. It cannot be modified. Specialized instructions and super instructions are private to the interpreter. If they are visible to Python code (not counting ctypes hacks), then that is a bug. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45362> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com