mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue #3080: Add PyImport_ImportModuleLevelObject() function
Use it for the builtin __import__ function.
This commit is contained in:
parent
98dbba5d20
commit
fe93faf98c
4 changed files with 41 additions and 18 deletions
|
@ -50,6 +50,13 @@ PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(
|
|||
PyObject *fromlist,
|
||||
int level
|
||||
);
|
||||
PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevelObject(
|
||||
PyObject *name,
|
||||
PyObject *globals,
|
||||
PyObject *locals,
|
||||
PyObject *fromlist,
|
||||
int level
|
||||
);
|
||||
|
||||
#define PyImport_ImportModuleEx(n, g, l, f) \
|
||||
PyImport_ImportModuleLevel(n, g, l, f, -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue