[Python-checkins] r60203 - python/trunk/Doc/library/functions.rst
raymond.hettinger
python-checkins at python.org
Tue Jan 22 21:18:53 CET 2008
Author: raymond.hettinger
Date: Tue Jan 22 21:18:53 2008
New Revision: 60203
Modified:
python/trunk/Doc/library/functions.rst
Log:
Give zip() the same guarantee as izip() for left-to-right evaluation.
Modified: python/trunk/Doc/library/functions.rst
==============================================================================
--- python/trunk/Doc/library/functions.rst (original)
+++ python/trunk/Doc/library/functions.rst Tue Jan 22 21:18:53 2008
@@ -1285,6 +1285,10 @@
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
More information about the Python-checkins
mailing list