summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-20 21:06:46 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-20 21:06:46 (GMT)
commit05311481d470fe59e9a23d9c165e09f0e3a4ee2e (patch)
tree9994a32455dec10ac4202e5480aafad9c0461468 /Include
parent59d1d2b434e8cf79e8b1321f148254c68f56c1f7 (diff)
downloadcpython-05311481d470fe59e9a23d9c165e09f0e3a4ee2e.zip
cpython-05311481d470fe59e9a23d9c165e09f0e3a4ee2e.tar.gz
cpython-05311481d470fe59e9a23d9c165e09f0e3a4ee2e.tar.bz2
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Diffstat (limited to 'Include')
-rw-r--r--Include/iterobject.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Include/iterobject.h b/Include/iterobject.h
new file mode 100644
index 0000000..38454a4
--- /dev/null
+++ b/Include/iterobject.h
@@ -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 *);