]> granicus.if.org Git - python/commitdiff
Add What's New for issues 32303 and 32305 (GH-5994) (GH-5995)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 5 Mar 2018 20:51:56 +0000 (12:51 -0800)
committerBarry Warsaw <barry@python.org>
Mon, 5 Mar 2018 20:51:56 +0000 (12:51 -0800)
(cherry picked from commit 4c19b95734faee4c390c1d0569dc876980c33d2c)

Co-authored-by: Barry Warsaw <barry@python.org>
Doc/whatsnew/3.7.rst

index 9e65488e37d6714c1dd1351df50e2d3d08e3c3d4..76e1f7b36b0b0475f63cb0e868f2b79149aed27f 100644 (file)
@@ -958,6 +958,14 @@ Other CPython Implementation Changes
   by setting the new ``f_trace_opcodes`` attribute to :const:`True` on the frame
   being traced. (Contributed by Nick Coghlan in :issue:`31344`.)
 
+* Fixed some consistency problems with namespace package module attributes.
+  Namespace module objects now have an ``__file__`` that is set to ``None``
+  (previously unset), and their ``__spec__.origin`` is also set to ``None``
+  (previously the string ``"namespace"``).  See :issue:`32305`.  Also, the
+  namespace module object's ``__spec__.loader`` is set to the same value as
+  ``__loader__`` (previously, the former was set to ``None``).  See
+  :issue:`32303`.
+
 
 Deprecated
 ==========