]> granicus.if.org Git - python/commitdiff
Add a comment making it explicit that itertools.tee() is already 64bit-safe (issue...
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 20 Sep 2013 20:19:22 +0000 (22:19 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 20 Sep 2013 20:19:22 +0000 (22:19 +0200)
Modules/itertoolsmodule.c

index 01231816123bdb29ca6c374cee46d858789636bb..8be62ce94c04f987d022b4979a1972f5834e8efd 100644 (file)
@@ -401,7 +401,7 @@ static PyTypeObject _grouper_type = {
 typedef struct {
     PyObject_HEAD
     PyObject *it;
-    int numread;
+    int numread;  /* 0 <= numread <= LINKCELLS */
     PyObject *nextlink;
     PyObject *(values[LINKCELLS]);
 } teedataobject;
@@ -409,7 +409,7 @@ typedef struct {
 typedef struct {
     PyObject_HEAD
     teedataobject *dataobj;
-    int index;
+    int index;    /* 0 <= index <= LINKCELLS */
     PyObject *weakreflist;
 } teeobject;