summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-08-17 17:21:16 (GMT)
committerBrett Cannon <brett@python.org>2012-08-17 17:21:16 (GMT)
commit7385adc84cf7bc47b6975ba51fbf1da7b0a33b46 (patch)
tree7b0918b655f0a1606607edfb05353954894b05f1 /Misc
parentb391b24efe9d12e44e237064ea26be43d6a6e9a2 (diff)
downloadcpython-7385adc84cf7bc47b6975ba51fbf1da7b0a33b46.zip
cpython-7385adc84cf7bc47b6975ba51fbf1da7b0a33b46.tar.gz
cpython-7385adc84cf7bc47b6975ba51fbf1da7b0a33b46.tar.bz2
Issue #15715: Ignore failed imports triggered by the use of fromlist.
When the fromlist argument is specified for __import__() and the attribute doesn't already exist, an import is attempted. If that fails (e.g. module doesn't exist), the ImportError will now be silenced (for backwards-compatibility). This *does not* affect ``from ... import ...`` statements. Thanks to Eric Snow for the patch and Simon Feltman for reporting the regression.
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 55f99a7..b7b4a56 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -16,6 +16,9 @@ Core and Builtins
Library
-------
+- Issue #15715: importlib.__import__() will silence an ImportError when the use
+ of fromlist leads to a failed import.
+
- Issue #14669: Fix pickling of connections and sockets on MacOSX
by sending/receiving an acknowledgment after file descriptor transfer.
TestPicklingConnection has been reenabled for MacOSX.