Skip to content

Commit 4c19b95

Browse files
authored
Add What's New for issues 32303 and 32305 (GH-5994)
1 parent 22c82be commit 4c19b95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/whatsnew/3.7.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,14 @@ Other CPython Implementation Changes
958958
by setting the new ``f_trace_opcodes`` attribute to :const:`True` on the frame
959959
being traced. (Contributed by Nick Coghlan in :issue:`31344`.)
960960

961+
* Fixed some consistency problems with namespace package module attributes.
962+
Namespace module objects now have an ``__file__`` that is set to ``None``
963+
(previously unset), and their ``__spec__.origin`` is also set to ``None``
964+
(previously the string ``"namespace"``). See :issue:`32305`. Also, the
965+
namespace module object's ``__spec__.loader`` is set to the same value as
966+
``__loader__`` (previously, the former was set to ``None``). See
967+
:issue:`32303`.
968+
961969

962970
Deprecated
963971
==========

0 commit comments

Comments
 (0)