Thanks to visit codestin.com Credit goes to github.com
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 25334ca commit 247e059Copy full SHA for 247e059
1 file changed
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