Staging
v0.5.1
https://github.com/python/cpython
Revision c422959daca0598fabbefa5de4417ebce3b1da06 authored by Nick Coghlan on 09 June 2017, 12:37:53 UTC, committed by GitHub on 09 June 2017, 12:37:53 UTC
* RFC 1750 has been been obsoleted by RFC 4086.
* RFC 3280 has been obsoleted by RFC 5280.
* RFC 4366 has been obsoleted by RFC 6066.
(cherry picked from commit 63c2c8ac17750ba2be2cfc4e339cae1f4edee54f)
1 parent f0ff849
Raw File
Tip revision: c422959daca0598fabbefa5de4417ebce3b1da06 authored by Nick Coghlan on 09 June 2017, 12:37:53 UTC
[3.6] bpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366
Tip revision: c422959
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