Skip to content

Commit d8e19e0

Browse files
Add a NEWS entry.
1 parent f4d6db6 commit d8e19e0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Frozen stdlib modules now have ``__file__`` to the .py file they would
2+
otherwise be loaded from, if possible. For packages, ``__path__`` now has
3+
the correct entry instead of being an empty list, which allows unfrozen
4+
submodules to be imported. These are set only if the stdlib directory is
5+
known when the runtime is initialized. Note that the file at ``__file__``
6+
is not guaranteed to exist. None of this affects non-stdlib frozen modules
7+
nor, for now, frozen modules imported using
8+
``PyImport_ImportFrozenModule()``. Also, at the moment ``co_filename`` is
9+
not updated for the module.

0 commit comments

Comments
 (0)