Repository navigation
gh-756: Add a page about frozen modules - #1989
Open
VanshajPoonia wants to merge 2 commits into
Open
VanshajPoonia wants to merge 2 commits into
VanshajPoonia wants to merge 2 commits into
Conversation
Covers what frozen modules are, the three kinds, how to change which stdlib modules are frozen, the runtime setting and how tests handle them.
Documentation build overview
|
| (the comment at the top of :cpy-file:`Python/frozen.c` says so). | ||
|
|
||
| Not every module is frozen. | ||
| Only the modules in the lists above are, and the sections show why they are |
Member
There was a problem hiding this comment.
This is documenting implementation details which are likely to go out of date, let's drop this.
It describes the current freeze_modules.py list, which is likely to go out of date.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #756.
This adds
developer-workflow/frozen-modules.rstand links it from the workflow index. It covers what frozen modules are, the three kinds (bootstrap, stdlib and test), how to change which modules are frozen withmake regen-frozen, why some stdlib modules are frozen and others are not, the-X frozen_modulessetting, and the test helpers inimport_helper.Each claim follows the CPython source:
Python/frozen.c,Tools/build/freeze_modules.py,Python/import.candPython/initconfig.c. The docs build with no new warnings andsphinx-lintpasses.