Staging
v0.5.1
https://github.com/python/cpython
Revision d6372b94a5a240da980a7973dc693e4998978edb authored by Alexandre Vassalotti on 14 April 2008, 22:46:41 UTC, committed by Alexandre Vassalotti on 14 April 2008, 22:46:41 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62345 | alexandre.vassalotti | 2008-04-14 18:40:08 -0400 (Mon, 14 Apr 2008) | 2 lines

  Backport manually r62342 from the py3k branch to the trunk.
........
1 parent 9efcc4b
Raw File
Tip revision: d6372b94a5a240da980a7973dc693e4998978edb authored by Alexandre Vassalotti on 14 April 2008, 22:46:41 UTC
Recorded merge of revisions 62345 via svnmerge from
Tip revision: d6372b9
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