]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-65961: Do not rely solely on `__cached__` (GH-97990)
authorBrett Cannon <brett@python.org>
Thu, 6 Oct 2022 22:40:22 +0000 (15:40 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2022 22:40:22 +0000 (15:40 -0700)
commite1c4d56fdde28728c37de855edbb463fa0d7f95d
treeb4c3a715e975f6349a8b07d856965fffb911f26d
parentf8edc6ff531bb98858185857513371f14519ed1d
gh-65961: Do not rely solely on `__cached__` (GH-97990)

Make sure `__spec__.cached` (at minimum) can be used.
Doc/c-api/import.rst
Doc/library/runpy.rst
Doc/whatsnew/3.12.rst
Lib/cProfile.py
Lib/importlib/_bootstrap_external.py
Lib/inspect.py
Lib/profile.py
Lib/test/test_importlib/import_/test_helpers.py [new file with mode: 0644]
Lib/test/test_inspect.py
Lib/test/test_pydoc.py
Misc/NEWS.d/next/Library/2022-10-06-17-59-22.gh-issue-65961.SXlQnI.rst [new file with mode: 0644]