[Python-3000] Is this really a SyntaxError? (original) (raw)
Georg Brandl g.brandl at gmx.net
Sun Jul 20 16:44:29 CEST 2008
- Previous message: [Python-3000] bsddb ownership, buffer protocol and 3.0
- Next message: [Python-3000] Is this really a SyntaxError?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
Georg
-- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out.
- Previous message: [Python-3000] bsddb ownership, buffer protocol and 3.0
- Next message: [Python-3000] Is this really a SyntaxError?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]