summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-05 07:11:32 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-05 07:11:32 (GMT)
commit026de19906695cc0f63977da4e7740214048ba6f (patch)
tree58bc69f5224856df46e5807c39e6801212251596 /Include
parent9eb671fac3ab8b47c7511513ab9576fee0aefc91 (diff)
downloadcpython-026de19906695cc0f63977da4e7740214048ba6f.zip
cpython-026de19906695cc0f63977da4e7740214048ba6f.tar.gz
cpython-026de19906695cc0f63977da4e7740214048ba6f.tar.bz2
Added PyImport_ImportModuleEx(name, globals, locals, fromlist); this
is like PyImport_ImporModule(name) but receives the globals and locals dict and the fromlist arguments as well. (The name is a char*; the others are PyObject*s).
Diffstat (limited to 'Include')
-rw-r--r--Include/import.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h
index 10ba69e..1e09d4e 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -42,6 +42,8 @@ PyObject *PyImport_ExecCodeModule Py_PROTO((char *name, PyObject *co));
PyObject *PyImport_GetModuleDict Py_PROTO((void));
PyObject *PyImport_AddModule Py_PROTO((char *name));
PyObject *PyImport_ImportModule Py_PROTO((char *name));
+PyObject *PyImport_ImportModuleEx Py_PROTO((
+ char *name, PyObject *globals, PyObject *locals, PyObject *fromlist));
PyObject *PyImport_Import Py_PROTO((PyObject *name));
PyObject *PyImport_ReloadModule Py_PROTO((PyObject *m));
void PyImport_Cleanup Py_PROTO((void));