You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are we planning to add functions and attributes back to dis.py and opcode.py?
Thanks for reading!
The text was updated successfully, but these errors were encountered:
hzhan147
changed the title
Missing dist.arg and some operations from opcode.py
Missing Instruction.arg from dis.py and some operations from opcode.py
Aug 22, 2023
Hi @hzhan147 - this version modifies the bytecode format, which leads to some incompatibilities as you have found. These changes are not part of PEP 703 and will not be integrated upstream, but I'm also not going back to change them here as I'm focused on integration upstream into Python 3.13.
Just compiled and am ready to use the nogil Python and realized the Python variant won't work with any libraries that use dis.py and/or opcode.py.
For example:
In Js2Py library, https://github.com/PiotrDabkowski/Js2Py/blob/master/js2py/utils/injector.py#L85,
It uses Instruction obj from the dis.py and explicitly uses the attribute 'arg'.
Are we planning to add functions and attributes back to dis.py and opcode.py?
Thanks for reading!
The text was updated successfully, but these errors were encountered: