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 | 01538269643175877f516d09f429a2ae28136da6 (patch) | |
| tree | 3b6bdbf815394deaf883b1409de3520de88959b4 /Include | |
| parent | 08801db123077407ae7ec7af2fe2d65a24a46063 (diff) | |
| download | cpython-git-01538269643175877f516d09f429a2ae28136da6.tar.gz | |
Created PyObject_GenericGetIter().
Factors out the common case of returning self.
Diffstat (limited to 'Include')
| -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 *); |
