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 @@ -509,6 +509,12 @@ Object Protocol
509
509
iterated.
510
510
511
511
512
+ .. c :function :: PyObject* PyObject_SelfIter (PyObject *obj)
513
+
514
+ This is equivalent to the Python ``__iter__(self): return self `` method.
515
+ It is intended for :term: `iterator ` types, to be used in the :c:member: `PyTypeObject.tp_iter ` slot.
516
+
517
+
512
518
.. c :function :: PyObject* PyObject_GetAIter (PyObject *o)
513
519
514
520
This is the equivalent to the Python expression ``aiter(o) ``. Takes an
Original file line number Diff line number Diff line change @@ -1849,6 +1849,9 @@ PyObject_RichCompareBool:PyObject*:o1:0:
1849
1849
PyObject_RichCompareBool:PyObject*:o2:0:
1850
1850
PyObject_RichCompareBool:int:opid::
1851
1851
1852
+ PyObject_SelfIter:PyObject*::+1:
1853
+ PyObject_SelfIter:PyObject*:obj:0:
1854
+
1852
1855
PyObject_SetAttr:int:::
1853
1856
PyObject_SetAttr:PyObject*:o:0:
1854
1857
PyObject_SetAttr:PyObject*:attr_name:0:
You can’t perform that action at this time.
0 commit comments