Staging
v0.5.1
https://github.com/python/cpython
Revision 6c3767445cf1e595d1729611284216b87f96e088 authored by Jesse Noller on 21 November 2009, 14:01:56 UTC, committed by Jesse Noller on 21 November 2009, 14:01:56 UTC
1 parent c4920e8
Raw File
Tip revision: 6c3767445cf1e595d1729611284216b87f96e088 authored by Jesse Noller on 21 November 2009, 14:01:56 UTC
issue5738: The distribution example was confusing, and out of date. It's too large to include inline in the docs as well. It belongs in an addons module outside the stdlib. Removing.
Tip revision: 6c37674
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;

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

PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *);

PyAPI_DATA(PyTypeObject) PyCallIter_Type;

#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