Skip to content

Conversation

@makslevental
Copy link
Contributor

tests for validation of the argument of the following instructions: BINARY_OP, FORMAT_VALUE, SPECIAL_METHOD, COMMON_CONSTANT, LOAD_SMALL_INT

…INARY_OP, FORMAT_VALUE, SPECIAL_METHOD, COMMON_CONSTANT, LOAD_SMALL_INT
@makslevental
Copy link
Contributor Author

Let me know if this is what you had in mind

@makslevental makslevental mentioned this pull request Jul 25, 2025
label = Label()
block = BasicBlock()

if PY314:

Choose a reason for hiding this comment

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

Since I define dedicated groups of opcode which are version dependent (such as BITFLAG_OPCODES) I would prefer for the tests to use those to avoid duplicating the version checks. Otherwise LGTM (and sorry for the long silence)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure np I'll make the change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay I changed to iteration over the opcode groups (like I saw that you do for BITFLAG_OPCODES. It's not super "elegant" because I don't know if you plan to add more opcode to the respective groups...

@makslevental
Copy link
Contributor Author

BTW shouldn't the tests run on this PR? Or do you have it set to only run on your own PRs?

@MatthieuDartiailh
Copy link
Owner

It runs only for PR targeting main. I will merge as is and try to add the test regarding the disassembly of relying on FORMAT_VALUE and BUILD_INTERPOLATION.

@MatthieuDartiailh MatthieuDartiailh merged commit fdd15df into MatthieuDartiailh:3.14-support Aug 10, 2025
@makslevental makslevental deleted the 3.14-support branch August 10, 2025 23:03
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