[New-bugs-announce] [issue3473] In function call, keyword arguments could follow *args

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


New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:

functions with keyword-only arguments have this form:
    def f(x, *args, y):
        pass
parameters can appear after the *arg, they are required to be passed by
keyword.

It would be more consistent to allow this function call:
    f(X, *ARGS, y=Y)
This is invalid syntax, *ARGS is required to be at the end of the
arguments, together with an eventual **KWARGS. This restriction should
be lifted.

See the use case in
http://mail.python.org/pipermail/python-3000/2008-July/014437.html

----------
assignee: amaury.forgeotdarc
messages: 70449
nosy: amaury.forgeotdarc
severity: normal
status: open
title: In function call, keyword arguments could follow *args
versions: Python 3.0

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


More information about the New-bugs-announce mailing list