We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 619a67c commit 936eefcCopy full SHA for 936eefc
1 file changed
Doc/library/importlib.rst
@@ -1749,6 +1749,9 @@ Checking if a module can be imported
1749
1750
If you need to find out if a module can be imported without actually doing the
1751
import, then you should use :func:`importlib.util.find_spec`.
1752
+
1753
+Note that if ``name`` is a submodule (contains a dot),
1754
+:func:`importlib.util.find_spec` will import the parent module.
1755
::
1756
1757
import importlib.util
0 commit comments