summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-08-30 19:53:48 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-08-30 19:53:48 (GMT)
commitde4ebfe5597d503af097cd51ec51cc70fa79d250 (patch)
treee4995b7c1ebf6126c33d858aaaded300fc93c584 /Misc
parentce7d4cbc3bb49e331a119df21058e9bbd6f15f83 (diff)
downloadcpython-de4ebfe5597d503af097cd51ec51cc70fa79d250.zip
cpython-de4ebfe5597d503af097cd51ec51cc70fa79d250.tar.gz
cpython-de4ebfe5597d503af097cd51ec51cc70fa79d250.tar.bz2
When the globals argument to importlib.__import__() contained any value for
__package__, it was used. This was incorrect since it could be set to None to represent the fact that a proper value was unknown. Now None will trigger the calculation for __package__. Discovered when running importlib against test_importhooks.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 6f73e73..608e9a8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -68,6 +68,9 @@ C-API
Library
-------
+- When the globals past to importlib.__import__() has __package__ set to None,
+ fall back to computing what __package__ should be instead of giving up.
+
- Raise a TypeError when the name of a module to be imported for
importlib.__import__ is not a string (was raising an
AttributeError before).