summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-21 19:51:00 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-21 19:51:00 (GMT)
commit6058eb49ee34171fbe2843f74360cddde0441bdc (patch)
tree405889e9374fb9944814ae3705abcbb9c4d2b158 /Python
parent65d5b5763c6bbd99d2e2c6b219570f4562382ff0 (diff)
downloadcpython-6058eb49ee34171fbe2843f74360cddde0441bdc.zip
cpython-6058eb49ee34171fbe2843f74360cddde0441bdc.tar.gz
cpython-6058eb49ee34171fbe2843f74360cddde0441bdc.tar.bz2
Improve comment for PyImport_Import() as suggested by Bill Tutt.
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index d35a8b7..feed81c 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -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)