[Python-checkins] r59613 - python/trunk/Doc/library/itertools.rst

raymond.hettinger python-checkins at python.org
Sat Dec 29 23:16:24 CET 2007


Author: raymond.hettinger
Date: Sat Dec 29 23:16:24 2007
New Revision: 59613

Modified:
   python/trunk/Doc/library/itertools.rst
Log:
Improve docs for itertools.groupby().  The use of xrange(0) to create a unique object is less obvious than object().

Modified: python/trunk/Doc/library/itertools.rst
==============================================================================
--- python/trunk/Doc/library/itertools.rst	(original)
+++ python/trunk/Doc/library/itertools.rst	Sat Dec 29 23:16:24 2007
@@ -159,7 +159,7 @@
                   key = lambda x: x
               self.keyfunc = key
               self.it = iter(iterable)
-              self.tgtkey = self.currkey = self.currvalue = xrange(0)
+              self.tgtkey = self.currkey = self.currvalue = object()
           def __iter__(self):
               return self
           def next(self):


More information about the Python-checkins mailing list