diff options
author | Brett Cannon <brett@python.org> | 2012-04-27 21:27:14 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-27 21:27:14 (GMT) |
commit | efad00d52041fedbff5d7cfadd163e228b4af519 (patch) | |
tree | 33c9cc54a62a114eeaffdcfe3e2b31fa6a0b1166 /Misc | |
parent | fea73efc9ea2a65d73a55f8bab1adfbbca62e38b (diff) | |
download | cpython-efad00d52041fedbff5d7cfadd163e228b4af519.zip cpython-efad00d52041fedbff5d7cfadd163e228b4af519.tar.gz cpython-efad00d52041fedbff5d7cfadd163e228b4af519.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,8 @@ What's New in Python 3.3.0 Alpha 3? Core and Builtins ----------------- +- Issue #14646: __import__() sets __loader__ if the loader did not. + - Issue #14605: No longer have implicit entries in sys.meta_path. If sys.meta_path is found to be empty, raise ImportWarning. @@ -79,6 +81,9 @@ Core and Builtins Library ------- +- Issue #14646: importlib.util.module_for_loader() now sets __loader__ and + __package__ (when possible). + - Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin). |