Improve comment for PyImport_Import() as suggested by Bill Tutt.
authorGuido van Rossum <guido@python.org>
Mon, 21 Dec 1998 19:51:00 +0000 (19:51 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Dec 1998 19:51:00 +0000 (19:51 +0000)
Python/import.c

index d35a8b7eb5f3b37ccd36ed5cd954f411393393e5..feed81cdf9b41e44cba66e16a23cd554c8ebc05a 100644 (file)
@@ -1827,7 +1827,10 @@ PyImport_ReloadModule(m)
    more accurately -- it invokes the __import__() function from the
    builtins of the current globals.  This means that the import is
    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 *
 PyImport_Import(module_name)