Skip to content

gh-756: Add a page about frozen modules - #1989

Open
VanshajPoonia wants to merge 2 commits into
python:mainfrom
VanshajPoonia:docs/756-frozen-modules
Open

VanshajPoonia wants to merge 2 commits into
python:mainfrom
VanshajPoonia:docs/756-frozen-modules

Conversation

@VanshajPoonia

Copy link
Copy Markdown

Closes #756.

This adds developer-workflow/frozen-modules.rst and 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 with make regen-frozen, why some stdlib modules are frozen and others are not, the -X frozen_modules setting, and the test helpers in import_helper.

Each claim follows the CPython source: Python/frozen.c, Tools/build/freeze_modules.py, Python/import.c and Python/initconfig.c. The docs build with no new warnings and sphinx-lint passes.

Covers what frozen modules are, the three kinds, how to change which stdlib modules are frozen, the runtime setting and how tests handle them.
@read-the-docs-community

read-the-docs-community Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 CPython devguide | 🛠️ Build #36192864 | 📁 Comparing b585f2a against latest (e97d25f)

  🔍 Preview build  

2 files changed
+ developer-workflow/frozen-modules/index.html
± genindex/index.html

Comment thread developer-workflow/frozen-modules.rst Outdated
(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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is documenting implementation details which are likely to go out of date, let's drop this.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done! Thank you :D

It describes the current freeze_modules.py list, which is likely to go out of date.
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.

Add information about frozen stdlib modules.

2 participants