[issue45020] Freeze all modules imported during startup.

Raymond Hettinger report at bugs.python.org
Sat Sep 18 00:02:10 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> Raymond, do you think we should also freeze the dependencies
> of runpy (so "python -m <module>" also starts faster)?

Yes, please.  

The '-m' load option can be considered core startup functionality.  It is often the recommended way to launch command line tools outside of a virtual environment.

   python -m pip install some_package

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45020>
_______________________________________


More information about the Python-bugs-list mailing list