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:
Brett Cannon 2014-04-04 10:01:46 -04:00
parent 1cd9825457
commit 18fc4e70f3
3 changed files with 63 additions and 32 deletions

View file

@ -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)