Skip to content

Support py 3.12 opcodes: part 2 #557

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

Merged
merged 5 commits into from
Jul 2, 2025
Merged

Support py 3.12 opcodes: part 2 #557

merged 5 commits into from
Jul 2, 2025

Conversation

whoami730
Copy link
Contributor

@whoami730 whoami730 commented Jun 30, 2025

  • Added support for COPY, BINARY_SLICE and STORE_SLICE opcodes for Python 3.12
  • Added tests for BINARY_SLICE and STORE_SLICE opcodes, unable to find useful test for COPY opcode

ASTree.cpp Outdated
{
stack.pop();

if ((opcode == Pyc::END_FOR) && (mod->majorVer() == 3) && (mod->minorVer() == 12)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not needed for 3.13 and later?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it seems to be changed in 3.13, but not sure when.

@whoami730
Copy link
Contributor Author

@zrax requesting to wait for draft PR to be moved to normal PR before reviewing. Helps avoid back and forth as well.

@whoami730 whoami730 changed the title Support COPY & SLICE opcodes Support py 3.12 opcodes: part 2 Jul 1, 2025
@whoami730
Copy link
Contributor Author

Unable to find any code to generate COPY operand so far.

@whoami730 whoami730 marked this pull request as ready for review July 1, 2025 17:44
@whoami730
Copy link
Contributor Author

Once part 1 and part 2 are reviewed, I will raise couple of more PRs.

@zrax zrax merged commit 7d2039d into zrax:master Jul 2, 2025
5 checks passed
@whoami730 whoami730 deleted the new-opcodes branch July 2, 2025 15:17
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

Successfully merging this pull request may close these issues.

2 participants