blob: f61726f1f7f83af90a53ef1488b7dad385444698 [file] [log] [blame]
Martin v. Löwis522cf1f2002-03-30 08:57:12 +00001#ifndef Py_ITEROBJECT_H
2#define Py_ITEROBJECT_H
Guido van Rossum05311482001-04-20 21:06:46 +00003/* Iterators (the basic kind, over a sequence) */
Martin v. Löwis522cf1f2002-03-30 08:57:12 +00004#ifdef __cplusplus
5extern "C" {
6#endif
Guido van Rossum05311482001-04-20 21:06:46 +00007
Mark Hammond91a681d2002-08-12 07:21:58 +00008PyAPI_DATA(PyTypeObject) PySeqIter_Type;
Christian Heimesa22e8bd2007-11-29 22:35:39 +00009PyAPI_DATA(PyTypeObject) PyCallIter_Type;
Christian Heimesa22e8bd2007-11-29 22:35:39 +000010PyAPI_DATA(PyTypeObject) PyCmpWrapper_Type;
Guido van Rossum05311482001-04-20 21:06:46 +000011
Christian Heimes90aa7642007-12-19 02:45:37 +000012#define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type)
Guido van Rossum05311482001-04-20 21:06:46 +000013
Mark Hammond91a681d2002-08-12 07:21:58 +000014PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);
Guido van Rossum05311482001-04-20 21:06:46 +000015
Guido van Rossum05311482001-04-20 21:06:46 +000016
Christian Heimes90aa7642007-12-19 02:45:37 +000017#define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type)
Guido van Rossum05311482001-04-20 21:06:46 +000018
Mark Hammond91a681d2002-08-12 07:21:58 +000019PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);
Guido van Rossumb65fb332006-08-25 23:26:40 +000020
Martin v. Löwis522cf1f2002-03-30 08:57:12 +000021#ifdef __cplusplus
22}
23#endif
24#endif /* !Py_ITEROBJECT_H */
25