1 /**
2   Mirror _iterobject.h
3 
4   Iterators (the basic kind, over a sequence)
5   */
6 module deimos.python.iterobject;
7 
8 import deimos.python.pyport;
9 import deimos.python.object;
10 
11 extern(C):
12 // Python-header-file: Include/iterobject.h:
13 
14 /// _
15 mixin(PyAPI_DATA!"PyTypeObject PySeqIter_Type");
16 
17 // D translation of C macro:
18 /// _
19 int PySeqIter_Check()(PyObject* op) {
20     return Py_TYPE(op) is &PySeqIter_Type;
21 }
22 
23 /// _
24 PyObject* PySeqIter_New(PyObject*);
25 
26 /// _
27 mixin(PyAPI_DATA!"PyTypeObject PyCallIter_Type");
28 version(Python_3_0_Or_Later) {
29     /// Availability: 3.*
30     mixin(PyAPI_DATA!"PyTypeObject PyCmpWrapper_Type");
31 }
32 
33 // D translation of C macro:
34 /// _
35 int PyCallIter_Check()(PyObject *op) {
36     return op.ob_type is &PyCallIter_Type;
37 }
38 
39 /// _
40 PyObject* PyCallIter_New(PyObject*, PyObject*);
41 
42