Adding iterobject.[ch], which were accidentally not added. Sorry\!

This commit is contained in:
Guido van Rossum 2001-04-20 21:06:46 +00:00
parent 59d1d2b434
commit 05311481d4
2 changed files with 201 additions and 0 deletions

13
Include/iterobject.h Normal file
View file

@ -0,0 +1,13 @@
/* Iterators (the basic kind, over a sequence) */
extern DL_IMPORT(PyTypeObject) PyIter_Type;
#define PyIter_Check(op) ((op)->ob_type == &PyIter_Type)
extern DL_IMPORT(PyObject *) PyIter_New(PyObject *);
extern DL_IMPORT(PyTypeObject) PyCallIter_Type;
#define PyCallIter_Check(op) ((op)->ob_type == &PyCallIter_Type)
extern DL_IMPORT(PyObject *) PyCallIter_New(PyObject *, PyObject *);