Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6058eb4

Browse files
committed
Improve comment for PyImport_Import() as suggested by Bill Tutt.
1 parent 65d5b57 commit 6058eb4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Python/import.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,10 @@ PyImport_ReloadModule(m)
18271827
more accurately -- it invokes the __import__() function from the
18281828
builtins of the current globals. This means that the import is
18291829
done using whatever import hooks are installed in the current
1830-
environment, e.g. by "ni" or "rexec". */
1830+
environment, e.g. by "rexec".
1831+
A dummy list ["__doc__"] is passed as the 4th argument so that
1832+
e.g. PyImport_Import(PyString_FromString("win32com.client.gencache"))
1833+
will return <module "gencache"> instead of <module "win32com">. */
18311834

18321835
PyObject *
18331836
PyImport_Import(module_name)

0 commit comments

Comments
 (0)