Staging
v0.5.1
https://github.com/python/cpython
Revision af1f977575331623547d53247d99be8953a13b9f authored by Terry Jan Reedy on 06 December 2018, 08:25:57 UTC, committed by GitHub on 06 December 2018, 08:25:57 UTC
1 parent af31228
Raw File
Tip revision: af1f977575331623547d53247d99be8953a13b9f authored by Terry Jan Reedy on 06 December 2018, 08:25:57 UTC
[3.6] bpo-34162: Update idlelib NEWS to 2018-12-05 (GH-10964) (GH-10979)
Tip revision: af1f977
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;
PyAPI_DATA(PyTypeObject) PyCmpWrapper_Type;

#define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type)

PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);


#define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type)

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

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

back to top