diff Python/import.c @ 9680:8b61e1273b4b legacy-trunk

Improve comment for PyImport_Import() as suggested by Bill Tutt.
author Guido van Rossum <guido@python.org>
date Mon, 21 Dec 1998 19:51:00 +0000
parents 877d23bd5bdc
children 0390af6acf7f
line wrap: on
line diff
--- a/Python/import.c	Mon Dec 21 19:32:43 1998 +0000
+++ b/Python/import.c	Mon Dec 21 19:51:00 1998 +0000
@@ -1827,7 +1827,10 @@
    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)