summaryrefslogtreecommitdiff
path: root/Include/object.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-03-17 08:24:35 +0000
committerRaymond Hettinger <python@rcn.com>2003-03-17 08:24:35 +0000
commite28caad1d02e204572adf5b5c0fa789fa2c4c9e0 (patch)
treeba01d2a341e2dc3636a3e5904cffc5f3f854ef1b /Include/object.h
parent01dde2e79589334941666a4b4d415363270ad6ed (diff)
downloadcpython-e28caad1d02e204572adf5b5c0fa789fa2c4c9e0.tar.gz
Created PyObject_GenericGetIter().
Factors out the common case of returning self.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 7b93230f18..291e605409 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -385,6 +385,7 @@ PyAPI_FUNC(PyObject *) PyObject_GetAttr(PyObject *, PyObject *);
PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
PyAPI_FUNC(int) PyObject_HasAttr(PyObject *, PyObject *);
PyAPI_FUNC(PyObject **) _PyObject_GetDictPtr(PyObject *);
+PyAPI_FUNC(PyObject *) PyObject_GenericGetIter(PyObject *);
PyAPI_FUNC(PyObject *) PyObject_GenericGetAttr(PyObject *, PyObject *);
PyAPI_FUNC(int) PyObject_GenericSetAttr(PyObject *,
PyObject *, PyObject *);