2002-03-30 16:57:12 +08:00
|
|
|
#ifndef Py_ITEROBJECT_H
|
|
|
|
#define Py_ITEROBJECT_H
|
2001-04-21 05:06:46 +08:00
|
|
|
/* Iterators (the basic kind, over a sequence) */
|
2002-03-30 16:57:12 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2001-04-21 05:06:46 +08:00
|
|
|
|
2002-08-12 15:21:58 +08:00
|
|
|
PyAPI_DATA(PyTypeObject) PySeqIter_Type;
|
2007-11-30 06:35:39 +08:00
|
|
|
PyAPI_DATA(PyTypeObject) PyCallIter_Type;
|
|
|
|
PyAPI_DATA(PyTypeObject) PyCmpWrapper_Type;
|
2001-04-21 05:06:46 +08:00
|
|
|
|
2007-12-19 10:45:37 +08:00
|
|
|
#define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type)
|
2001-04-21 05:06:46 +08:00
|
|
|
|
2002-08-12 15:21:58 +08:00
|
|
|
PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);
|
2001-04-21 05:06:46 +08:00
|
|
|
|
|
|
|
|
2007-12-19 10:45:37 +08:00
|
|
|
#define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type)
|
2001-04-21 05:06:46 +08:00
|
|
|
|
2002-08-12 15:21:58 +08:00
|
|
|
PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);
|
2006-08-26 07:26:40 +08:00
|
|
|
|
2002-03-30 16:57:12 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_ITEROBJECT_H */
|
|
|
|
|