[issue3473] In function call, keyword arguments could follow *args

Amaury Forgeot d'Arc report at bugs.python.org
Thu Jul 31 03:30:55 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Should this apply to 2.6 as well? See r65321, I find the last line
easier to read when arguments are in this order.

    def grouper(n, iterable, fillvalue=None):
        args = [iter(iterable)] * n
        return izip_longest(*args, fillvalue=fillvalue)

On the cons side, keyword-only arguments don't exist in 2.6, so the
consistency with function definition syntax does not apply.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3473>
_______________________________________


More information about the Python-bugs-list mailing list