From: Raymond Hettinger Date: Wed, 30 Jul 2008 07:45:01 +0000 (+0000) Subject: Fix-up recipe with a syntax error (as discussed on python-dev). X-Git-Tag: v3.0b3~217 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e73ffcf7bc52e439c5aa1af25e0e45fa114c135;p=thirdparty%2FPython%2Fcpython.git Fix-up recipe with a syntax error (as discussed on python-dev). --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 71864439a230..3320d992ee43 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -565,7 +565,8 @@ which incur interpreter overhead. def grouper(n, iterable, fillvalue=None): "grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx" args = [iter(iterable)] * n - return zip_longest(*args, fillvalue=fillvalue) + kwds = dict(fillvalue=fillvalue) + return zip_longest(*args, **kwds) def roundrobin(*iterables): "roundrobin('ABC', 'D', 'EF') --> A D E B F C"