[Python-3000] Is this really a SyntaxError?

Georg Brandl g.brandl at gmx.net
Tue Jul 29 21:48:42 CEST 2008

Georg Brandl schrieb:
> Someone just wrote to the docs mailing list and reported that the itertools
> documentation for Py3k contains this recipe:
> def grouper(n, iterable, fillvalue=None):
>      args = [iter(iterable)] * n
>      return zip_longest(*args, fillvalue=fillvalue)
> It is currently a syntax error in 3k. There's also a test for it in
> test_keywordonlyarg.py, however, I can currently see no reason why
> it should be disallowed.

No opinions at all?


More information about the Python-3000 mailing list