blob: c078ebb28b092cc8fbed35417b1c361b16204687 [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;
Guido van Rossum05311482001-04-20 21:06:46 +00009
Guido van Rossum213c7a62001-04-23 14:08:49 +000010#define PySeqIter_Check(op) ((op)->ob_type == &PySeqIter_Type)
Guido van Rossum05311482001-04-20 21:06:46 +000011
Mark Hammond91a681d2002-08-12 07:21:58 +000012PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);
Guido van Rossum05311482001-04-20 21:06:46 +000013
Mark Hammond91a681d2002-08-12 07:21:58 +000014PyAPI_DATA(PyTypeObject) PyCallIter_Type;
Guido van Rossum05311482001-04-20 21:06:46 +000015
16#define PyCallIter_Check(op) ((op)->ob_type == &PyCallIter_Type)
17
Mark Hammond91a681d2002-08-12 07:21:58 +000018PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);
Martin v. Löwis522cf1f2002-03-30 08:57:12 +000019#ifdef __cplusplus
20}
21#endif
22#endif /* !Py_ITEROBJECT_H */
23