[Python-Dev] cpython (2.7): Make it easier to search for the grouper() recipe.

Georg Brandl g.brandl at gmx.net
Fri Jul 6 21:36:27 CEST 2012


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



More information about the Python-Dev mailing list