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 <1615317183.77.0.170902990759.issue43445@roundup.psfhosted.org>
In-reply-to
Content
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. "_stdlib_modules.py" inside the lib folder.  Then, you can have site.py or some similar startup logic import that module and assign it to sys.stdlib_module_names.
History
Date User Action Args
2021-03-09 19:13:03naschemesetrecipients: + nascheme, vstinner
2021-03-09 19:13:03naschemesetmessageid: <1615317183.77.0.170902990759.issue43445@roundup.psfhosted.org>
2021-03-09 19:13:03naschemelinkissue43445 messages
2021-03-09 19:13:03naschemecreate