Home
last modified time | relevance | path

Searched refs:tp_iternext (Results 1 – 25 of 39) sorted by relevance

12

/external/python/cpython2/Doc/includes/
Dtypestruct.h54 iternextfunc tp_iternext; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h52 iternextfunc tp_iternext; member
/external/python/cpython3/Include/cpython/
Dabstract.h335 (Py_TYPE(obj)->tp_iternext != NULL && \
336 Py_TYPE(obj)->tp_iternext != &_PyObject_NextNotImplemented)
Dobject.h246 iternextfunc tp_iternext; member
/external/python/cpython2/Doc/c-api/
Diter.rst18 classes because those classes always define a :c:member:`tp_iternext`
/external/python/cpython3/Python/
Dbltinmodule.c340 iternext = *Py_TYPE(it)->tp_iternext; in builtin_all()
389 iternext = *Py_TYPE(it)->tp_iternext; in builtin_any()
568 iternext = *Py_TYPE(it)->tp_iternext; in filter_next()
1278 PyObject *val = Py_TYPE(it)->tp_iternext(it); in map_next()
1391 res = (*Py_TYPE(it)->tp_iternext)(it); in builtin_next()
2613 item = (*Py_TYPE(it)->tp_iternext)(it); in zip_next()
2628 item = (*Py_TYPE(it)->tp_iternext)(it); in zip_next()
Dhamt.c2627 .tp_iternext = (iternextfunc)hamt_baseiter_tp_iternext,
/external/python/cpython2/Modules/
Ditertoolsmodule.c893 iternext = *Py_TYPE(it)->tp_iternext; in dropwhile_next()
1039 item = (*Py_TYPE(it)->tp_iternext)(it); in takewhile_next()
1230 iternext = *Py_TYPE(it)->tp_iternext; in islice_next()
1377 args = (*Py_TYPE(it)->tp_iternext)(it); in starmap_next()
2860 PyObject *(*datanext)(PyObject *) = *Py_TYPE(data)->tp_iternext; in compress_next()
2861 PyObject *(*selectornext)(PyObject *) = *Py_TYPE(selectors)->tp_iternext; in compress_next()
3009 iternext = *Py_TYPE(it)->tp_iternext; in ifilter_next()
3154 iternext = *Py_TYPE(it)->tp_iternext; in ifilterfalse_next()
3585 item = (*Py_TYPE(it)->tp_iternext)(it); in izip_next()
3600 item = (*Py_TYPE(it)->tp_iternext)(it); in izip_next()
/external/python/cpython2/Include/
Dabstract.h639 (obj)->ob_type->tp_iternext != NULL && \
640 (obj)->ob_type->tp_iternext != &_PyObject_NextNotImplemented)
Dobject.h377 iternextfunc tp_iternext; member
/external/python/cpython3/Doc/extending/
Dnewtypes.rst510 iternextfunc tp_iternext;
516 to the Python :meth:`__iter__` method, while :c:member:`~PyTypeObject.tp_iternext`
529 implement the :c:member:`~PyTypeObject.tp_iternext` handler.
532 and :c:member:`~PyTypeObject.tp_iternext`. An iterator's
534 to the iterator. Its :c:member:`~PyTypeObject.tp_iternext` handler should
536 If the iteration has reached the end, :c:member:`~PyTypeObject.tp_iternext`
540 occurs, :c:member:`~PyTypeObject.tp_iternext` should always set an exception
/external/python/cpython3/Objects/
Dtypeslots.inc64 offsetof(PyHeapTypeObject, ht_type.tp_iternext),
Denumobject.c156 next_item = (*Py_TYPE(it)->tp_iternext)(it); in enum_next()
Dabstract.c2679 return Py_TYPE(obj)->tp_iternext != NULL && in PyIter_Check()
2680 Py_TYPE(obj)->tp_iternext != &_PyObject_NextNotImplemented; in PyIter_Check()
2694 result = (*Py_TYPE(iter)->tp_iternext)(iter); in PyIter_Next()
Ddictobject.c4008 .tp_iternext = (iternextfunc)dictreviter_iternext,
4051 .tp_iternext = (iternextfunc)dictreviter_iternext,
4063 .tp_iternext = (iternextfunc)dictreviter_iternext,
Dbytearrayobject.c863 iternext = *Py_TYPE(it)->tp_iternext; in bytearray_init()
Dtypeobject.c5325 COPYSLOT(tp_iternext); in inherit_slots()
7159 TPSLOT("__next__", tp_iternext, slot_tp_iternext, wrap_next,
7477 if (ptr == (void**)&type->tp_iternext) { in update_one_slot()
/external/python/cpython3/Modules/
Ditertoolsmodule.c1206 iternext = *Py_TYPE(it)->tp_iternext; in dropwhile_next()
1371 item = (*Py_TYPE(it)->tp_iternext)(it); in takewhile_next()
1584 iternext = *Py_TYPE(it)->tp_iternext; in islice_next()
1785 args = (*Py_TYPE(it)->tp_iternext)(it); in starmap_next()
1959 item = (*Py_TYPE(lz->active)->tp_iternext)(lz->active); in chain_next()
3533 val = (*Py_TYPE(lz->it)->tp_iternext)(lz->it); in accumulate_next()
3731 PyObject *(*datanext)(PyObject *) = *Py_TYPE(data)->tp_iternext; in compress_next()
3732 PyObject *(*selectornext)(PyObject *) = *Py_TYPE(selectors)->tp_iternext; in compress_next()
3889 iternext = *Py_TYPE(it)->tp_iternext; in filterfalse_next()
D_collectionsmodule.c373 iternext = *Py_TYPE(it)->tp_iternext; in consume_iterator()
413 iternext = *Py_TYPE(it)->tp_iternext; in deque_extend()
460 iternext = *Py_TYPE(it)->tp_iternext; in deque_extendleft()
D_asynciomodule.c1734 .tp_iternext = (iternextfunc)FutureIter_iternext,
/external/python/cpython2/Objects/
Denumobject.c136 next_item = (*Py_TYPE(it)->tp_iternext)(it); in enum_next()
Dtypeobject.c4090 COPYSLOT(tp_iternext);
6075 TPSLOT("next", tp_iternext, slot_tp_iternext, wrap_next,
6333 if (ptr == (void**)&type->tp_iternext) {
/external/python/cpython2/Python/
Dbltinmodule.c92 iternext = *Py_TYPE(it)->tp_iternext; in builtin_all()
135 iternext = *Py_TYPE(it)->tp_iternext; in builtin_any()
1119 res = (*it->ob_type->tp_iternext)(it); in builtin_next()
/external/python/cpython2/Doc/extending/
Dnewtypes.rst1449 iternextfunc tp_iternext;
1454 by a ``tp_iter`` handler must implement both the ``tp_iter`` and ``tp_iternext``
1466 implement the ``tp_iternext`` handler. File objects are an example of such an
1472 ``tp_iternext`` handler should return a new reference to the next object in the
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst103 …| :c:member:`~PyTypeObject.tp_iternext` | :c:type:`iternextfunc` | __next__ …
1432 .. c:member:: iternextfunc PyTypeObject.tp_iternext
1437 PyObject *tp_iternext(PyObject *self);
2422 See :c:member:`~PyTypeObject.tp_iternext`.
2502 0, /* tp_iternext */

12