blob: 12853b4146608dc8243ee3b9e442f417dbc8d0d9 [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
Martin v. Löwis9f2e3462007-07-21 17:22:18 +000010#define PySeqIter_Check(op) (Py_Type(op) == &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
Martin v. Löwis9f2e3462007-07-21 17:22:18 +000016#define PyCallIter_Check(op) (Py_Type(op) == &PyCallIter_Type)
Guido van Rossum05311482001-04-20 21:06:46 +000017
Mark Hammond91a681d2002-08-12 07:21:58 +000018PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);
Guido van Rossumb65fb332006-08-25 23:26:40 +000019
20PyObject* _PyZip_CreateIter(PyObject* args);
21
Martin v. Löwis522cf1f2002-03-30 08:57:12 +000022#ifdef __cplusplus
23}
24#endif
25#endif /* !Py_ITEROBJECT_H */
26