Staging
v0.5.1
https://github.com/python/cpython
Revision f5d7cc239e61e063e7bab783d55deb8e72210674 authored by R David Murray on 19 March 2013, 20:23:09 UTC, committed by R David Murray on 19 March 2013, 20:23:09 UTC
I have no idea how one would write a test for this.

Patch by July Tikhonov.
1 parent fcb6d6a
Raw File
Tip revision: f5d7cc239e61e063e7bab783d55deb8e72210674 authored by R David Murray on 19 March 2013, 20:23:09 UTC
#8862: Fix curses cleanup with getchar is interrupted by a signal.
Tip revision: f5d7cc2
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