[Python-checkins] cpython: Add a comment making it explicit that itertools.tee() is already 64bit-safe

antoine.pitrou python-checkins at python.org
Fri Sep 20 22:19:29 CEST 2013


http://hg.python.org/cpython/rev/900bf633b7f4
changeset:   85761:900bf633b7f4
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Fri Sep 20 22:19:22 2013 +0200
summary:
  Add a comment making it explicit that itertools.tee() is already 64bit-safe (issue #19049)

files:
  Modules/itertoolsmodule.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -401,7 +401,7 @@
 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 {
     PyObject_HEAD
     teedataobject *dataobj;
-    int index;
+    int index;    /* 0 <= index <= LINKCELLS */
     PyObject *weakreflist;
 } teeobject;
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list