Searched refs:tp_iter (Results 1 – 17 of 17) sorted by relevance
/third_party/python/Doc/includes/ |
D | typestruct.h | 53 getiterfunc tp_iter; member
|
/third_party/python/Doc/extending/ |
D | newtypes.rst | 526 getiterfunc tp_iter; 532 exception and return ``NULL``. :c:member:`~PyTypeObject.tp_iter` corresponds 536 Any :term:`iterable` object must implement the :c:member:`~PyTypeObject.tp_iter` 542 each call to :c:member:`~PyTypeObject.tp_iter`. 544 iteration, such as file objects) can implement :c:member:`~PyTypeObject.tp_iter` 548 Any :term:`iterator` object should implement both :c:member:`~PyTypeObject.tp_iter` 550 :c:member:`~PyTypeObject.tp_iter` handler should return a new reference
|
/third_party/python/Objects/ |
D | typeslots.inc | 63 {-1, offsetof(PyTypeObject, tp_iter)},
|
D | dictobject.c | 704 assert(Py_TYPE(orig)->tp_iter == (getiterfunc)dict_iter); in clone_combined_dict_keys() 2565 if (PyDict_Check(b) && (Py_TYPE(b)->tp_iter == (getiterfunc)dict_iter)) { in dict_merge() 2793 if (Py_TYPE(mp)->tp_iter == (getiterfunc)dict_iter && in PyDict_Copy() 4122 .tp_iter = PyObject_SelfIter, 4165 .tp_iter = PyObject_SelfIter, 4177 .tp_iter = PyObject_SelfIter,
|
D | abstract.c | 2806 f = t->tp_iter; in PyObject_GetIter()
|
D | memoryobject.c | 3266 .tp_iter = PyObject_SelfIter,
|
D | typeobject.c | 5909 COPYSLOT(tp_iter); in inherit_slots() 7940 TPSLOT("__iter__", tp_iter, slot_tp_iter, wrap_unaryfunc,
|
/third_party/python/Include/cpython/ |
D | object.h | 243 getiterfunc tp_iter; member
|
/third_party/python/Modules/ |
D | _asynciomodule.c | 1544 .tp_iter = (getiterfunc)future_new_iter, 1769 .tp_iter = PyObject_SelfIter, 2501 .tp_iter = (getiterfunc)future_new_iter,
|
/third_party/python/Python/ |
D | hamt.c | 2607 .tp_iter = PyObject_SelfIter, \ 2899 .tp_iter = (getiterfunc)hamt_tp_iter,
|
D | context.c | 711 .tp_iter = (getiterfunc)context_tp_iter,
|
D | ceval.c | 3196 (Py_TYPE(iterable)->tp_iter == NULL && !PySequence_Check(iterable))) in _PyEval_EvalFrameDefault() 5289 Py_TYPE(v)->tp_iter == NULL && !PySequence_Check(v)) in unpack_iterable() 6181 if (Py_TYPE(args)->tp_iter == NULL && !PySequence_Check(args)) { in check_args_iterable()
|
/third_party/python/Doc/c-api/ |
D | typeobj.rst | 101 …| :c:member:`~PyTypeObject.tp_iter` | :c:type:`getiterfunc` | __iter__ … 1521 .. c:member:: getiterfunc PyTypeObject.tp_iter 1529 PyObject *tp_iter(PyObject *self); 1548 Iterator types should also define the :c:member:`~PyTypeObject.tp_iter` function, and that 2546 See :c:member:`~PyTypeObject.tp_iter`. 2633 0, /* tp_iter */
|
/third_party/python/Doc/whatsnew/ |
D | 2.2.rst | 453 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.c | 558 return PyTuple_Type.tp_iter(SignalTuple); in signaldict_iter()
|
/third_party/python/Doc/library/ |
D | stdtypes.rst | 796 :c:member:`~PyTypeObject.tp_iter` slot of the type structure for Python 808 :c:member:`~PyTypeObject.tp_iter` slot of the type structure for Python
|
/third_party/python/Misc/ |
D | HISTORY | 21837 - 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).
|