summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-06-16 00:00:53 (GMT)
committerBrett Cannon <brett@python.org>2012-06-16 00:00:53 (GMT)
commitea0b8239401123fa7f41c74f6fc9ded1cf74088a (patch)
tree6d5afa0b55c1c5e1e39770d062b25d81a231535b /Misc
parent0450c9ed52deccd087c56b4da36f02c800c604a5 (diff)
downloadcpython-ea0b8239401123fa7f41c74f6fc9ded1cf74088a.zip
cpython-ea0b8239401123fa7f41c74f6fc9ded1cf74088a.tar.gz
cpython-ea0b8239401123fa7f41c74f6fc9ded1cf74088a.tar.bz2
Issue #14938: importlib.abc.SourceLoader.is_package() now takes the
module name into consideration when determining whether a module is a package or not. This prevents importing a module's __init__ module directly and having it considered a package, which can lead to duplicate sub-modules. Thanks to Ronan Lamy for reporting the bug.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d45c5b5..9e7df25 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,6 +24,10 @@ Core and Builtins
Library
-------
+- Issue #14938: importlib.abc.SourceLoader.is_package() will not consider a
+ module whose name ends in '__init__' a package (e.g. importing pkg.__init__
+ directly should be considered a module, not a package).
+
- Issue #14982: Document that pkgutil's iteration functions require the
non-standard iter_modules() method to be defined by an importer (something
the importlib importers do not define).