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

remove _PyCompile_OpcodeHas* functions #121554

Closed
iritkatriel opened this issue Jul 9, 2024 · 0 comments · Fixed by #121555
Closed

remove _PyCompile_OpcodeHas* functions #121554

iritkatriel opened this issue Jul 9, 2024 · 0 comments · Fixed by #121555

Comments

@iritkatriel
Copy link
Member

iritkatriel commented Jul 9, 2024

There are a bunch of functions in compile.c that expose data from pycore_opcode_metadata.h as private C API. These are only used in Modules/_opcode.c.

However, Modules/_opcode.c can just include pycore_opcode_metadata.h and pycore_opcode_utils.h, and access this data directly.

Linked PRs

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 a pull request may close this issue.

1 participant