diff options
author | Raymond Hettinger <python@rcn.com> | 2003-03-17 08:24:35 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-03-17 08:24:35 +0000 |
commit | e28caad1d02e204572adf5b5c0fa789fa2c4c9e0 (patch) | |
tree | ba01d2a341e2dc3636a3e5904cffc5f3f854ef1b /Include/object.h | |
parent | 01dde2e79589334941666a4b4d415363270ad6ed (diff) | |
download | cpython-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.h | 1 |
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 *); |