On 03.07.2012 06:09, raymond.hettinger wrote: > http://hg.python.org/cpython/rev/d32f21d87363 > changeset: 77921:d32f21d87363 > branch: 2.7 > parent: 77914:366df7ba1616 > user: Raymond Hettinger <python at rcn.com> > date: Mon Jul 02 21:08:45 2012 -0700 > summary: > Make it easier to search for the grouper() recipe. > > files: > Doc/library/itertools.rst | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > > diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst > --- a/Doc/library/itertools.rst > +++ b/Doc/library/itertools.rst > @@ -733,7 +733,8 @@ > return izip(a, b) > > def grouper(n, iterable, fillvalue=None): > - "grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx" > + "Collect data into fixed-length chunks or blocks" > + # grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx" > args = [iter(iterable)] * n > return izip_longest(fillvalue=fillvalue, *args) Will you please apply this also to 3.x? Georg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4