Brandt Bucher <brandtbuc...@gmail.com> added the comment:

I have a hunch that this is caused in optimize_basic_block. In general, we 
don't bother clearing the oparg when peepholing instructions into NOPs.

We could either start becoming more principled about that and fix all of the 
existing NOPs, or just update instrsize and write_op_arg to ignore args for 
instructions that don't use them.

The latter seems easier and less error-prone.

----------
nosy: +brandtbucher

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45757>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to