blob: bc189910f9747e3617bb570bad0640a4107b1cf6 [file] [log] [blame]
Guido van Rossum05311482001-04-20 21:06:46 +00001/* Iterators (the basic kind, over a sequence) */
2
Guido van Rossum213c7a62001-04-23 14:08:49 +00003extern DL_IMPORT(PyTypeObject) PySeqIter_Type;
Guido van Rossum05311482001-04-20 21:06:46 +00004
Guido van Rossum213c7a62001-04-23 14:08:49 +00005#define PySeqIter_Check(op) ((op)->ob_type == &PySeqIter_Type)
Guido van Rossum05311482001-04-20 21:06:46 +00006
Guido van Rossum213c7a62001-04-23 14:08:49 +00007extern DL_IMPORT(PyObject *) PySeqIter_New(PyObject *);
Guido van Rossum05311482001-04-20 21:06:46 +00008
9extern DL_IMPORT(PyTypeObject) PyCallIter_Type;
10
11#define PyCallIter_Check(op) ((op)->ob_type == &PyCallIter_Type)
12
13extern DL_IMPORT(PyObject *) PyCallIter_New(PyObject *, PyObject *);