]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41718: runpy now imports pkgutil in functions (GH-24996)
authorVictor Stinner <vstinner@python.org>
Tue, 23 Mar 2021 18:22:57 +0000 (19:22 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Mar 2021 18:22:57 +0000 (19:22 +0100)
commitbd9154a495434464283f74b660160f89930cd791
treefd4a7ca67c4f063641caa1f56511ce149eb2d8c3
parentd72e8d487553c103bf2742e229f8266b515fd951
bpo-41718: runpy now imports pkgutil in functions (GH-24996)

Reduce the number of modules imported by "python3 -m module".

The runpy module no longer imports at startup (in the module body),
but only in functions using it: _get_code_from_file() and run_path().
Lib/runpy.py