[Python-checkins] r60972 - python/trunk/Modules/itertoolsmodule.c

raymond.hettinger python-checkins at python.org
Sat Feb 23 05:03:51 CET 2008


Author: raymond.hettinger
Date: Sat Feb 23 05:03:50 2008
New Revision: 60972

Modified:
   python/trunk/Modules/itertoolsmodule.c
Log:
Add more comments

Modified: python/trunk/Modules/itertoolsmodule.c
==============================================================================
--- python/trunk/Modules/itertoolsmodule.c	(original)
+++ python/trunk/Modules/itertoolsmodule.c	Sat Feb 23 05:03:50 2008
@@ -1746,10 +1746,10 @@
 typedef struct {
 	PyObject_HEAD
 	PyObject *pools;		/* tuple of pool tuples */
-	Py_ssize_t *maxvec;
-	Py_ssize_t *indices;
-	PyObject *result;
-	int stopped;
+	Py_ssize_t *maxvec;             /* size of each pool */
+	Py_ssize_t *indices;            /* one index per pool */
+	PyObject *result;               /* most recently returned result tuple */
+	int stopped;                    /* set to 1 when the product iterator is exhausted */
 } productobject;
 
 static PyTypeObject product_type;


More information about the Python-checkins mailing list