]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35673: Add a public alias for namespace package __loader__ attribute (#29049)
authorBarry Warsaw <barry@python.org>
Wed, 20 Oct 2021 21:05:29 +0000 (14:05 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Oct 2021 21:05:29 +0000 (14:05 -0700)
commit876fc7fcec9a79a11546b7588d3683a5ccb4d31c
tree9195e6474ea19461bbc5d9705f05bd2cf8603209
parent6270d3eeaf17b50abc4f8f4d97790d66179638e4
bpo-35673: Add a public alias for namespace package __loader__ attribute (#29049)

Rename namespace package __loader__ class to be public.

Make the old name, i.e. _NamespaceLoader, an alias for the public name, for backward compatibility.
Doc/library/importlib.rst
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap_external.py
Lib/importlib/abc.py
Lib/importlib/machinery.py
Lib/test/test_importlib/test_namespace_pkgs.py
Misc/NEWS.d/next/Library/2021-10-18-18-12-47.bpo-35673.KOkHWe.rst [new file with mode: 0644]