bpo-45019: Add a tool to generate list of modules to include for frozen modules by ericsnowcurrently · Pull Request #27980 · python/cpython
Conversation
Frozen modules must be added to several files in order to work properly. Before this change this had to be done manually. Here we add a tool to generate the relevant lines in those files instead. This helps us avoid mistakes and omissions.
Is this ready for review (apart from the failing test)?
Yes.
(I need to figure out why "make regen-keywords" isn't working for me locally. Something about ModuleNotFoundError('dataclasses').)
brettcannon
changed the title
bpo-45019: Add a tool to generate lines for frozen modules.
bpo-45019: Add a tool to generate list of modules to include for frozen modules
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've only gotten to frozen.c, I'll review the rest later. So far this is great, I just have a few nits about outdated comments.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the rest. It's looking much better than the version I used for my "codegen" experiments!
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Do you want any other reviewers? Pablo?
This change is focused on cleanup, so other reviewers probably aren't necessary. The next PR (freezing some of the stdlib modules) might deserve more than one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters