From 026de19906695cc0f63977da4e7740214048ba6f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 5 Sep 1997 07:11:32 +0000 Subject: [PATCH] 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). --- Include/import.h | 2 ++ PC/python_nt.def | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Include/import.h b/Include/import.h index 10ba69e3e28..1e09d4ea3b8 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 9fde47b28de..0d8ad22bd78 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