File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,12 @@ Object Protocol
410410 iterated.
411411
412412
413+ .. c :function :: PyObject* PyObject_SelfIter (PyObject *obj)
414+
415+ This is equivalent to the Python ``__iter__(self): return self `` method.
416+ It is intended for :term: `iterator ` types, to be used in the :c:member: `PyTypeObject.tp_iter ` slot.
417+
418+
413419.. c :function :: PyObject* PyObject_GetAIter (PyObject *o)
414420
415421 This is the equivalent to the Python expression ``aiter(o) ``. Takes an
Original file line number Diff line number Diff line change @@ -1818,6 +1818,9 @@ PyObject_RichCompareBool:PyObject*:o1:0:
18181818PyObject_RichCompareBool:PyObject*:o2:0:
18191819PyObject_RichCompareBool:int:opid::
18201820
1821+ PyObject_SelfIter:PyObject*::+1:
1822+ PyObject_SelfIter:PyObject*:obj:0:
1823+
18211824PyObject_SetAttr:int:::
18221825PyObject_SetAttr:PyObject*:o:0:
18231826PyObject_SetAttr:PyObject*:attr_name:0:
You can’t perform that action at this time.
0 commit comments