diff options
author | Barry Warsaw <barry@python.org> | 2018-02-02 20:15:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-02 20:15:58 (GMT) |
commit | bbbcf8693b876daae4469765aa62f8924f39a7d2 (patch) | |
tree | 25bcb5f1a52c5c6177cc3aaabb626fd42068fe7b /Misc | |
parent | 383b32fe108ea627699cc9c644fba5f8bae95d73 (diff) | |
download | cpython-bbbcf8693b876daae4469765aa62f8924f39a7d2.zip cpython-bbbcf8693b876daae4469765aa62f8924f39a7d2.tar.gz cpython-bbbcf8693b876daae4469765aa62f8924f39a7d2.tar.bz2 |
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
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-16-28.bpo-32303.VsvhSl.rst | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-56-41.bpo-32305.dkU9Qa.rst | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-16-28.bpo-32303.VsvhSl.rst b/Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-16-28.bpo-32303.VsvhSl.rst new file mode 100644 index 0000000..b84448f --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-16-28.bpo-32303.VsvhSl.rst @@ -0,0 +1 @@ +Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages. diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-56-41.bpo-32305.dkU9Qa.rst b/Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-56-41.bpo-32305.dkU9Qa.rst new file mode 100644 index 0000000..204d74a --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-02-01-10-56-41.bpo-32305.dkU9Qa.rst @@ -0,0 +1,2 @@ +For namespace packages, ensure that both ``__file__`` and +``__spec__.origin`` are set to None. |