-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
GH-111485: Factor out generation of uop IDs from cases generator. #112877
Conversation
markshannon
commented
Dec 8, 2023
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: The code generated for the interpreter(s) is too fragile #111485
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
out.emit("#ifdef __cplusplus\n") | ||
out.emit("}\n") | ||
out.emit("#endif\n") | ||
out.emit("#endif /* !Py_OPCODE_IDS_H */\n") |
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.
This postscript repeats itself in other generated files. Could be generated by a common utility function eventually. Or even a common context manager that adds the opening and closing bits.
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, that makes sense for the header files.