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 446fd04 commit a096a2eCopy full SHA for a096a2e
1 file changed
Doc/api/api.tex
@@ -983,7 +983,12 @@ \section{Importing Modules}
983
check the modules dictionary if there's one there, and if not, create
984
a new one and insert in in the modules dictionary. Because the former
985
action is most common, this does not return a new reference, and you
986
-do not own the returned reference. Return \NULL{} with an
+do not own the returned reference.
987
+Warning: this function does not load or import the module; if the
988
+module wasn't already loaded, you will get an empty module object.
989
+Use \cfunction{PyImport_ImportModule()} or one of its variants to
990
+import a module.
991
+Return \NULL{} with an
992
exception set on failure. \strong{Note:} this function returns
993
a ``borrowed'' reference.
994
\end{cfuncdesc}
0 commit comments