Home
last modified time | relevance | path

Searched refs:tp_iter (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Doc/includes/
Dtypestruct.h51 getiterfunc tp_iter; member
/third_party/python/Doc/extending/
Dnewtypes.rst509 getiterfunc tp_iter;
515 exception and return ``NULL``. :c:member:`~PyTypeObject.tp_iter` corresponds
519 Any :term:`iterable` object must implement the :c:member:`~PyTypeObject.tp_iter`
525 each call to :c:member:`~PyTypeObject.tp_iter`.
527 iteration, such as file objects) can implement :c:member:`~PyTypeObject.tp_iter`
531 Any :term:`iterator` object should implement both :c:member:`~PyTypeObject.tp_iter`
533 :c:member:`~PyTypeObject.tp_iter` handler should return a new reference
/third_party/python/Objects/
Dtypeslots.inc63 offsetof(PyHeapTypeObject, ht_type.tp_iter),
Ddictobject.c2513 if (PyDict_Check(b) && (Py_TYPE(b)->tp_iter == (getiterfunc)dict_iter)) { in dict_merge()
4017 .tp_iter = PyObject_SelfIter,
4060 .tp_iter = PyObject_SelfIter,
4072 .tp_iter = PyObject_SelfIter,
Dabstract.c2655 f = t->tp_iter; in PyObject_GetIter()
Dtypeobject.c5324 COPYSLOT(tp_iter); in inherit_slots()
7157 TPSLOT("__iter__", tp_iter, slot_tp_iter, wrap_unaryfunc,
/third_party/python/Include/cpython/
Dobject.h245 getiterfunc tp_iter; member
/third_party/python/Modules/
D_asynciomodule.c1541 .tp_iter = (getiterfunc)future_new_iter,
1733 .tp_iter = PyObject_SelfIter,
2543 .tp_iter = (getiterfunc)future_new_iter,
/third_party/python/Python/
Dcontext.c695 .tp_iter = (getiterfunc)context_tp_iter,
Dhamt.c2626 .tp_iter = PyObject_SelfIter, \
2918 .tp_iter = (getiterfunc)hamt_tp_iter,
Dceval.c2781 (Py_TYPE(iterable)->tp_iter == NULL && !PySequence_Check(iterable))) in _PyEval_EvalFrameDefault()
4517 Py_TYPE(v)->tp_iter == NULL && !PySequence_Check(v)) in unpack_iterable()
5382 if (Py_TYPE(args)->tp_iter == NULL && !PySequence_Check(args)) { in check_args_iterable()
/third_party/python/Doc/c-api/
Dtypeobj.rst101 …| :c:member:`~PyTypeObject.tp_iter` | :c:type:`getiterfunc` | __iter__ …
1417 .. c:member:: getiterfunc PyTypeObject.tp_iter
1425 PyObject *tp_iter(PyObject *self);
1444 Iterator types should also define the :c:member:`~PyTypeObject.tp_iter` function, and that
2418 See :c:member:`~PyTypeObject.tp_iter`.
2501 0, /* tp_iter */
/third_party/python/Doc/whatsnew/
D2.2.rst453 own iterators. Extension types implemented in C can implement a :c:member:`~PyTypeObject.tp_iter`
481 sequences that don't implement :meth:`__iter__` or a :c:member:`~PyTypeObject.tp_iter` slot, so
/third_party/python/Modules/_decimal/
D_decimal.c558 return PyTuple_Type.tp_iter(SignalTuple); in signaldict_iter()
/third_party/python/Doc/library/
Dstdtypes.rst768 :c:member:`~PyTypeObject.tp_iter` slot of the type structure for Python objects in the Python/C
779 This method corresponds to the :c:member:`~PyTypeObject.tp_iter` slot of the type structure for
/third_party/python/Misc/
DHISTORY21837 - Added PyObject_SelfIter() to fill the tp_iter slot for the
24713 using the __iter__() method (in Python) or the tp_iter slot (in C).