]> granicus.if.org Git - python/commitdiff
Add more comments
authorRaymond Hettinger <python@rcn.com>
Sat, 23 Feb 2008 04:03:50 +0000 (04:03 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 23 Feb 2008 04:03:50 +0000 (04:03 +0000)
Modules/itertoolsmodule.c

index 5a3b03fa6baff6879b0faa0757c8dccbfbef1698..ef15a39d8a00967deacd8cbfe07c81b2cdb83fb3 100644 (file)
@@ -1746,10 +1746,10 @@ static PyTypeObject chain_type = {
 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;