blob: 6454611aebef8a6cad8b923354318374e03fe26f [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;
Christian Heimesa22e8bd2007-11-29 22:35:39 +00009PyAPI_DATA(PyTypeObject) PyCallIter_Type;
Victor Stinnerb98eba52021-04-08 09:58:15 +020010#ifdef Py_BUILD_CORE
11extern PyTypeObject _PyAnextAwaitable_Type;
12#endif
Guido van Rossum05311482001-04-20 21:06:46 +000013
Dong-hee Nad905df72020-02-14 02:37:17 +090014#define PySeqIter_Check(op) Py_IS_TYPE(op, &PySeqIter_Type)
Guido van Rossum05311482001-04-20 21:06:46 +000015
Mark Hammond91a681d2002-08-12 07:21:58 +000016PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);
Guido van Rossum05311482001-04-20 21:06:46 +000017
Guido van Rossum05311482001-04-20 21:06:46 +000018
Dong-hee Nad905df72020-02-14 02:37:17 +090019#define PyCallIter_Check(op) Py_IS_TYPE(op, &PyCallIter_Type)
Guido van Rossum05311482001-04-20 21:06:46 +000020
Mark Hammond91a681d2002-08-12 07:21:58 +000021PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);
Guido van Rossumb65fb332006-08-25 23:26:40 +000022
Martin v. Löwis522cf1f2002-03-30 08:57:12 +000023#ifdef __cplusplus
24}
25#endif
26#endif /* !Py_ITEROBJECT_H */
27