summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-14 19:54:52 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-14 19:54:52 (GMT)
commitfe93faf98c0866c20f05dc009a8ac2fecee80692 (patch)
tree42249c67dc2ec193951ddec2baf21823d50ce756 /Include
parent98dbba5d209dda5300df549ef26eb4646cb891f0 (diff)
downloadcpython-fe93faf98c0866c20f05dc009a8ac2fecee80692.zip
cpython-fe93faf98c0866c20f05dc009a8ac2fecee80692.tar.gz
cpython-fe93faf98c0866c20f05dc009a8ac2fecee80692.tar.bz2
Issue #3080: Add PyImport_ImportModuleLevelObject() function
Use it for the builtin __import__ function.
Diffstat (limited to 'Include')
-rw-r--r--Include/import.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h
index 6a62c94..6331edf 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -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)