mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #20942: PyImport_ImportFrozenModuleObject() no longer sets
__file__. This causes _frozen_importlib to no longer have __file__ set as well as any frozen module imported using imp.init_frozen() (which is deprecated).
This commit is contained in:
parent
1cd9825457
commit
18fc4e70f3
3 changed files with 63 additions and 32 deletions
|
|
@ -245,6 +245,9 @@ Importing Modules
|
|||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
The ``__file__`` attribute is no longer set on the module.
|
||||
|
||||
|
||||
.. c:function:: int PyImport_ImportFrozenModule(const char *name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue