Give zip() the same guarantee as izip() for left-to-right evaluation.

This commit is contained in:
Raymond Hettinger 2008-01-22 20:18:53 +00:00
parent d02fc48f67
commit 9ed5b57fe2
1 changed files with 4 additions and 0 deletions

View 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