]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42403: Simplify importlib external bootstrap (GH-23397)
authorVictor Stinner <vstinner@python.org>
Thu, 19 Nov 2020 12:43:43 +0000 (13:43 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Nov 2020 12:43:43 +0000 (13:43 +0100)
commit3390347aa036404453213d589fe1e35902e55fd4
tree49309f502a12cfece7b30190f3f36a8ab1143d46
parent7d9d25dbedfffce61fc76bc7ccbfa9ae901bf56f
bpo-42403: Simplify importlib external bootstrap (GH-23397)

Simplify the importlib external bootstrap code:
importlib._bootstrap_external now uses regular imports to import
builtin modules. When it is imported, the builtin __import__()
function is already fully working and so can be used to import
builtin modules like sys.
Lib/importlib/__init__.py
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap_external.py
Misc/NEWS.d/next/Library/2020-11-19-10-12-39.bpo-42403.t7q5AX.rst [new file with mode: 0644]
Python/importlib.h
Python/importlib_external.h