]> granicus.if.org Git - python/commit
bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating...
authorBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 6 Apr 2018 23:10:18 +0000 (16:10 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Apr 2018 23:10:18 +0000 (16:10 -0700)
commit9e2be60634914f23db2ae5624e4acc9335bf5fea
tree9b1613b2c8bdad0fd942222c07a72e90e8dd509e
parent3a9ccee0e5dbf7d67f5ab79f6095755969db117c
bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating caches (GH-6402)

An entry of None in sys.path_importer_cache represents a negative/missing finder for a path, so clearing it out makes sense.
Doc/library/importlib.rst
Lib/importlib/_bootstrap_external.py
Lib/test/test_importlib/import_/test_path.py
Lib/test/test_importlib/test_api.py
Misc/NEWS.d/next/Library/2018-04-06-14-56-26.bpo-33169.ByhDqb.rst [new file with mode: 0644]
Python/importlib_external.h