blob: 6454611aebef8a6cad8b923354318374e03fe26f [file] [log] [blame]
Haibo Huangd8830302020-03-03 10:09:46 -08001#ifndef Py_ITEROBJECT_H
2#define Py_ITEROBJECT_H
3/* Iterators (the basic kind, over a sequence) */
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8PyAPI_DATA(PyTypeObject) PySeqIter_Type;
9PyAPI_DATA(PyTypeObject) PyCallIter_Type;
Yi Kong71199322022-08-30 15:53:45 +080010#ifdef Py_BUILD_CORE
11extern PyTypeObject _PyAnextAwaitable_Type;
12#endif
Haibo Huangd8830302020-03-03 10:09:46 -080013
Haibo Huang5eba2b42021-01-22 11:22:02 -080014#define PySeqIter_Check(op) Py_IS_TYPE(op, &PySeqIter_Type)
Haibo Huangd8830302020-03-03 10:09:46 -080015
16PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);
17
18
Haibo Huang5eba2b42021-01-22 11:22:02 -080019#define PyCallIter_Check(op) Py_IS_TYPE(op, &PyCallIter_Type)
Haibo Huangd8830302020-03-03 10:09:46 -080020
21PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);
22
23#ifdef __cplusplus
24}
25#endif
26#endif /* !Py_ITEROBJECT_H */
27