]> granicus.if.org Git - python/commit
Issue #14646: __import__() now sets __loader__ if need be.
authorBrett Cannon <brett@python.org>
Fri, 27 Apr 2012 21:27:14 +0000 (17:27 -0400)
committerBrett Cannon <brett@python.org>
Fri, 27 Apr 2012 21:27:14 +0000 (17:27 -0400)
commitefad00d52041fedbff5d7cfadd163e228b4af519
tree33c9cc54a62a114eeaffdcfe3e2b31fa6a0b1166
parentfea73efc9ea2a65d73a55f8bab1adfbbca62e38b
Issue #14646: __import__() now sets __loader__ if need be.

importlib.util.module_for_loader also will set __loader__ along with
__package__. This is in conjunction to a forthcoming update to PEP 302
which will make these two attributes required for loaders to set.
Doc/library/importlib.rst
Lib/importlib/_bootstrap.py
Lib/importlib/test/test_util.py
Misc/NEWS
Python/importlib.h