[New-bugs-announce] [issue45189] Drop the "list_frozen" command from _test_embed.

Eric Snow report at bugs.python.org
Mon Sep 13 19:22:53 EDT 2021

New submission from Eric Snow <ericsnowcurrently at gmail.com>:

In Programs/_test_embed.c the "list_frozen" command prints out the name of each frozen module (defined in Python/frozen.c).  The only place this is used is in Tools/scripts/generate_stdlib_module_names.py (in list_frozen()).  That script can be updated to call imp._get_frozen_module_names(), which was added in PR GH-28319 for bpo-45019.  Then _test_embed can go back to being used strictly for tests.

(FWIW, the script could also read from Python/frozen_modules/MANIFEST after running "make regen-frozen".  That file was added in GH-27980).

components: Demos and Tools
messages: 401741
nosy: eric.snow, vstinner
priority: normal
severity: normal
stage: needs patch
status: open
title: Drop the "list_frozen" command from _test_embed.
versions: Python 3.11

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list