Saul Shanabrook <s.shanabr...@gmail.com> added the comment:

I added a patch to make `dis` work with the overflow format.

I am looking into why the bytecode is emitted like this in the first place now. 

I see that currently, Python is trying to write a negative bytecode arg for the 
JUMP_ABSOLUTE and `instrsize` is saying this requires 4 args (which is not 
true, it only requires one). Is it intended behavior that the bytecode args 
will be negative? If so, then `instrsize` might have to be updated to handle 
this. It takes in an `unsigned int` but the oparg is actually a signed int.

----------

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

Reply via email to