Staging
v0.5.1
https://github.com/python/cpython
Revision 6d3dfee271b6e4afbfb060c269b034b871e2d1b3 authored by Ethan Furman on 08 December 2020, 20:26:56 UTC, committed by GitHub on 08 December 2020, 20:26:56 UTC
1 parent 37440ee
Raw File
Tip revision: 6d3dfee271b6e4afbfb060c269b034b871e2d1b3 authored by Ethan Furman on 08 December 2020, 20:26:56 UTC
[Enum] reformat and add doc strings (GH-23705)
Tip revision: 6d3dfee
iterobject.h
#ifndef Py_ITEROBJECT_H
#define Py_ITEROBJECT_H
/* Iterators (the basic kind, over a sequence) */
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_DATA(PyTypeObject) PySeqIter_Type;
PyAPI_DATA(PyTypeObject) PyCallIter_Type;

#define PySeqIter_Check(op) Py_IS_TYPE(op, &PySeqIter_Type)

PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);


#define PyCallIter_Check(op) Py_IS_TYPE(op, &PyCallIter_Type)

PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_ITEROBJECT_H */

back to top