From 9ed5b57fe21fe4c853a18c905071c3314cdd6492 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 22 Jan 2008 20:18:53 +0000 Subject: [PATCH] Give zip() the same guarantee as izip() for left-to-right evaluation. --- Doc/library/functions.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 227b0fcc548..44eb5d8f82d 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