Update opcode from 3.13.7#6156
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
|
finally we get |
Sorry, something went wrong.
|
For some reason I can't comment on the thread of #6156 (comment) so answering it here:
Yes! it also makes it easier for writing the helpers of:
but that wouldn't be needed as I intend #6174 to generate those automatically (just like CPython does it)
Well, yes you could. but I thought that we could have an API that looks similar to this: // This is inside the `_opcode` module
fn has_arg(opcode: i32) -> bool {
Instruction::try_from(opcode).map_or(false, |v| !v.is_pseudo() && v.has_arg())
}where:
are all auto generated. |
Sorry, something went wrong.
youknowone
left a comment
There was a problem hiding this comment.
Looks good in general.
I am worrying about the newly introduced magic numbers. I wish it could be quickly resolved in next patch
Sorry, something went wrong.
3a6fda4
into
RustPython:main
Oct 5, 2025
I'll send a quick patch to resolve it in the next couple of days |
Sorry, something went wrong.
No description provided.