Skip to content
Snippets Groups Projects
Unverified Commit 936eefcb authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

gh-92994: Clarify importlib "check" example (GH-92995)



Fixes GH-92994
(cherry picked from commit e39cd765)

Co-authored-by: default avatarShantanu <12621235+hauntsaninja@users.noreply.github.com>
parent 619a67cc
Branches
Tags
No related merge requests found
......@@ -1749,6 +1749,9 @@ Checking if a module can be imported
If you need to find out if a module can be imported without actually doing the
import, then you should use :func:`importlib.util.find_spec`.
Note that if ``name`` is a submodule (contains a dot),
:func:`importlib.util.find_spec` will import the parent module.
::
import importlib.util
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment