]> granicus.if.org Git - python/commit
bpo-32303 - Consistency fixes for namespace loaders (#5481)
authorBarry Warsaw <barry@python.org>
Fri, 2 Feb 2018 20:15:58 +0000 (15:15 -0500)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2018 20:15:58 +0000 (15:15 -0500)
commitbbbcf8693b876daae4469765aa62f8924f39a7d2
tree25bcb5f1a52c5c6177cc3aaabb626fd42068fe7b
parent383b32fe108ea627699cc9c644fba5f8bae95d73
bpo-32303 - Consistency fixes for namespace loaders (#5481)

* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages.
* Make sure ``__spec__.origin` matches ``__file__`` for namespace packages.

https://bugs.python.org/issue32303
https://bugs.python.org/issue32305
Doc/library/importlib.rst
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap_external.py
Lib/importlib/resources.py
Lib/test/test_importlib/test_api.py
Lib/test/test_importlib/test_namespace_pkgs.py
Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-16-28.bpo-32303.VsvhSl.rst [new file with mode: 0644]
Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-56-41.bpo-32305.dkU9Qa.rst [new file with mode: 0644]
Python/importlib.h
Python/importlib_external.h