2002-03-30 09:57:12 +01:00
|
|
|
#ifndef Py_ITEROBJECT_H
|
|
|
|
#define Py_ITEROBJECT_H
|
2001-04-20 23:06:46 +02:00
|
|
|
/* Iterators (the basic kind, over a sequence) */
|
2002-03-30 09:57:12 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2001-04-20 23:06:46 +02:00
|
|
|
|
2002-08-12 09:21:58 +02:00
|
|
|
PyAPI_DATA(PyTypeObject) PySeqIter_Type;
|
2007-11-29 23:35:39 +01:00
|
|
|
PyAPI_DATA(PyTypeObject) PyCallIter_Type;
|
2021-04-08 09:58:15 +02:00
|
|
|
#ifdef Py_BUILD_CORE
|
|
|
|
extern PyTypeObject _PyAnextAwaitable_Type;
|
|
|
|
#endif
|
2001-04-20 23:06:46 +02:00
|
|
|
|
2020-02-13 18:37:17 +01:00
|
|
|
#define PySeqIter_Check(op) Py_IS_TYPE(op, &PySeqIter_Type)
|
2001-04-20 23:06:46 +02:00
|
|
|
|
2002-08-12 09:21:58 +02:00
|
|
|
PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);
|
2001-04-20 23:06:46 +02:00
|
|
|
|
|
|
|
|
2020-02-13 18:37:17 +01:00
|
|
|
#define PyCallIter_Check(op) Py_IS_TYPE(op, &PyCallIter_Type)
|
2001-04-20 23:06:46 +02:00
|
|
|
|
2002-08-12 09:21:58 +02:00
|
|
|
PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);
|
2006-08-26 01:26:40 +02:00
|
|
|
|
2002-03-30 09:57:12 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_ITEROBJECT_H */
|
|
|
|
|