This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nascheme
Recipients nascheme, vstinner
Date 2021-03-09.19:13:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Not sure the proper place to discuss this but I wonder if putting this stdlib module names list in the executable is the best idea.  The list of available stdlib modules could change after compiling Python.  I understand you don't want to dynamically crawl the library path the build the list.  That's too slow.  However, is there a really strong reason to embed it in the Python executable?

Did you consider generating a .py module, containing the list.  E.g. "" inside the lib folder.  Then, you can have or some similar startup logic import that module and assign it to sys.stdlib_module_names.
Date User Action Args
2021-03-09 19:13:03naschemesetrecipients: + nascheme, vstinner
2021-03-09 19:13:03naschemesetmessageid: <>
2021-03-09 19:13:03naschemelinkissue43445 messages
2021-03-09 19:13:03naschemecreate