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
410
410
iterated.
411
411
412
412
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
+
413
419
.. c :function :: PyObject* PyObject_GetAIter (PyObject *o)
414
420
415
421
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:
1818
1818
PyObject_RichCompareBool:PyObject*:o2:0:
1819
1819
PyObject_RichCompareBool:int:opid::
1820
1820
1821
+ PyObject_SelfIter:PyObject*::+1:
1822
+ PyObject_SelfIter:PyObject*:obj:0:
1823
+
1821
1824
PyObject_SetAttr:int:::
1822
1825
PyObject_SetAttr:PyObject*:o:0:
1823
1826
PyObject_SetAttr:PyObject*:attr_name:0:
You can’t perform that action at this time.
0 commit comments