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 b7a6610 commit e39cd76Copy full SHA for e39cd76
Doc/library/importlib.rst
@@ -1250,6 +1250,9 @@ Checking if a module can be imported
1250
1251
If you need to find out if a module can be imported without actually doing the
1252
import, then you should use :func:`importlib.util.find_spec`.
1253
+
1254
+Note that if ``name`` is a submodule (contains a dot),
1255
+:func:`importlib.util.find_spec` will import the parent module.
1256
::
1257
1258
import importlib.util
0 commit comments