summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-01-22 20:18:53 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-01-22 20:18:53 (GMT)
commit9ed5b57fe21fe4c853a18c905071c3314cdd6492 (patch)
treea93734266bfa07e86ab9fc2d6e969c3b49f97577
parentd02fc48f67b140e8605a1c9e986f78c8bb8df531 (diff)
downloadcpython-9ed5b57fe21fe4c853a18c905071c3314cdd6492.zip
cpython-9ed5b57fe21fe4c853a18c905071c3314cdd6492.tar.gz
cpython-9ed5b57fe21fe4c853a18c905071c3314cdd6492.tar.bz2
Give zip() the same guarantee as izip() for left-to-right evaluation.
-rw-r--r--Doc/library/functions.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 227b0fc..44eb5d8 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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