summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/iterobject.h2
-rw-r--r--Include/object.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/Include/iterobject.h b/Include/iterobject.h
index 86abb25..f61726f 100644
--- a/Include/iterobject.h
+++ b/Include/iterobject.h
@@ -18,8 +18,6 @@ PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);
PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);
-PyAPI_FUNC(PyObject *) _PyIter_GetBuiltin(const char *iter);
-
#ifdef __cplusplus
}
#endif
diff --git a/Include/object.h b/Include/object.h
index 9b3055d..4024306 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -535,6 +535,11 @@ PyAPI_FUNC(int)
_PyObject_GenericSetAttrWithDict(PyObject *, PyObject *,
PyObject *, PyObject *);
+/* Helper to look up a builtin object */
+#ifndef Py_LIMITED_API
+PyAPI_FUNC(PyObject *)
+_PyObject_GetBuiltin(const char *name);
+#endif
/* PyObject_Dir(obj) acts like Python builtins.dir(obj), returning a
list of strings. PyObject_Dir(NULL) is like builtins.dir(),