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).
This commit is contained in:
Guido van Rossum 1997-09-05 07:11:32 +00:00
parent 9eb671fac3
commit 026de19906
2 changed files with 4 additions and 0 deletions

View File

@ -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));

View File

@ -211,6 +211,8 @@ EXPORTS
PyImport_GetModuleDict
PyImport_GetMagicNumber
PyImport_ImportModule
PyImport_ImportModuleEx
PyImport_Import
PyImport_ImportFrozenModule
PyImport_ReloadModule
PyNumber_Coerce