]> granicus.if.org Git - python/commitdiff
Give zip() the same guarantee as izip() for left-to-right evaluation.
authorRaymond Hettinger <python@rcn.com>
Tue, 22 Jan 2008 20:18:53 +0000 (20:18 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 22 Jan 2008 20:18:53 +0000 (20:18 +0000)
Doc/library/functions.rst

index 227b0fcc5486dde7ccae5036acedf2949b1b6311..44eb5d8f82dda8b5e8e4608910adc3373638244c 100644 (file)
@@ -1285,6 +1285,10 @@ available.  They are listed here in alphabetical order.
    sequence argument, it returns a list of 1-tuples. With no arguments, it returns
    an empty list.
 
+   The left-to-right evaluation order of the iterables is guaranteed. This
+   makes possible an idiom for clustering a data series into n-length groups
+   using ``zip(*[iter(s)]*n)``.
+
    .. versionadded:: 2.0
 
    .. versionchanged:: 2.4