-
Notifications
You must be signed in to change notification settings - Fork 732
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
Conversation
ASTree.cpp
Outdated
{ | ||
stack.pop(); | ||
|
||
if ((opcode == Pyc::END_FOR) && (mod->majorVer() == 3) && (mod->minorVer() == 12)) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
- 3.13 documentation says one pop
- 3.12 documentation says two pops
@zrax requesting to wait for draft PR to be moved to normal PR before reviewing. Helps avoid back and forth as well. |
Unable to find any code to generate |
Once part 1 and part 2 are reviewed, I will raise couple of more PRs. |
COPY
,BINARY_SLICE
andSTORE_SLICE
opcodes for Python 3.12BINARY_SLICE
andSTORE_SLICE
opcodes, unable to find useful test forCOPY
opcode