Staging
v0.5.1
https://github.com/python/cpython
Revision a93a663d6c2fdfbddbda9729c96e2737c0012522 authored by Zsolt Dollenstein on 27 April 2018, 22:33:37 UTC, committed by Yury Selivanov on 27 April 2018, 22:33:37 UTC
1 parent dd3ede7
Raw File
Tip revision: a93a663d6c2fdfbddbda9729c96e2737c0012522 authored by Zsolt Dollenstein on 27 April 2018, 22:33:37 UTC
[3.7] bpo-33363: raise SyntaxError for async for/with outside async functions (GH-6616). (GH-6619)
Tip revision: a93a663
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