From: Guido van Rossum Date: Fri, 5 Sep 1997 07:11:32 +0000 (+0000) Subject: Added PyImport_ImportModuleEx(name, globals, locals, fromlist); this X-Git-Tag: v1.5a4~230 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=026de19906695cc0f63977da4e7740214048ba6f;p=thirdparty%2FPython%2Fcpython.git 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). --- diff --git a/Include/import.h b/Include/import.h index 10ba69e3e284..1e09d4ea3b84 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)); diff --git a/PC/python_nt.def b/PC/python_nt.def index 9fde47b28de5..0d8ad22bd788 100644 --- a/PC/python_nt.def +++ b/PC/python_nt.def @@ -211,6 +211,8 @@ EXPORTS PyImport_GetModuleDict PyImport_GetMagicNumber PyImport_ImportModule + PyImport_ImportModuleEx + PyImport_Import PyImport_ImportFrozenModule PyImport_ReloadModule PyNumber_Coerce