Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Instruction.arg from dis.py and some operations from opcode.py #123

Open
hzhan147 opened this issue Aug 22, 2023 · 1 comment
Open

Comments

@hzhan147
Copy link

hzhan147 commented Aug 22, 2023

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!

@hzhan147 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
@colesbury
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants