Kaydet (Commit) 6058eb49 authored tarafından Guido van Rossum's avatar Guido van Rossum

Improve comment for PyImport_Import() as suggested by Bill Tutt.

üst 65d5b576
...@@ -1827,7 +1827,10 @@ PyImport_ReloadModule(m) ...@@ -1827,7 +1827,10 @@ PyImport_ReloadModule(m)
more accurately -- it invokes the __import__() function from the more accurately -- it invokes the __import__() function from the
builtins of the current globals. This means that the import is builtins of the current globals. This means that the import is
done using whatever import hooks are installed in the current done using whatever import hooks are installed in the current
environment, e.g. by "ni" or "rexec". */ environment, e.g. by "rexec".
A dummy list ["__doc__"] is passed as the 4th argument so that
e.g. PyImport_Import(PyString_FromString("win32com.client.gencache"))
will return <module "gencache"> instead of <module "win32com">. */
PyObject * PyObject *
PyImport_Import(module_name) PyImport_Import(module_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment