From: Raymond Hettinger Date: Tue, 22 Jan 2008 20:18:53 +0000 (+0000) Subject: Give zip() the same guarantee as izip() for left-to-right evaluation. X-Git-Tag: v2.6a1~457 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ed5b57fe21fe4c853a18c905071c3314cdd6492;p=python Give zip() the same guarantee as izip() for left-to-right evaluation. --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 227b0fcc54..44eb5d8f82 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