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

added python 3.10 support #202

Merged
merged 4 commits into from Oct 10, 2021
Merged

added python 3.10 support #202

merged 4 commits into from Oct 10, 2021

Conversation

ghost
Copy link

@ghost ghost commented Oct 9, 2021

added "temporary support" for python 3.10, however some of the newer opcodes are not in bytes/python_310.map to prevent conflict with the undeclared pycdc opcodes , however im working on them, any suggestions on how i should add them to ASTree would be appreciated thanks!

@zrax
Copy link
Owner

zrax commented Oct 9, 2021

You can add the new opcodes to bytecode_ops.inl. The order doesn't matter much, except that the opcodes with no arg (OPCODE()) need to be before those with an arg (OPCODE_A()). I usually just add new opcodes to the end of these two lists for simplicity.

PythonBytecode.txt Outdated Show resolved Hide resolved
pyc_module.h Outdated Show resolved Hide resolved
@ghost
Copy link
Author

ghost commented Oct 10, 2021

PTAL

bytes/python_310.map Show resolved Hide resolved
bytecode_ops.inl Show resolved Hide resolved
@zrax zrax merged commit 9109449 into zrax:master Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant