summaryrefslogtreecommitdiff
path: root/Include/iterobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-20 21:06:46 +0000
committerGuido van Rossum <guido@python.org>2001-04-20 21:06:46 +0000
commit05311481d470fe59e9a23d9c165e09f0e3a4ee2e (patch)
tree9994a32455dec10ac4202e5480aafad9c0461468 /Include/iterobject.h
parent59d1d2b434e8cf79e8b1321f148254c68f56c1f7 (diff)
downloadcpython-git-05311481d470fe59e9a23d9c165e09f0e3a4ee2e.tar.gz
Adding iterobject.[ch], which were accidentally not added. Sorry\!
Diffstat (limited to 'Include/iterobject.h')
-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 0000000000..38454a43c6
--- /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 *);