[Python-Dev] keyword-only arguments and varags

Benjamin Peterson benjamin at python.org
Sun Jun 5 03:45:31 CEST 2011


Currently,
def f(*, kw, **kwargs): pass
is valid syntax, but
def f(*args, *, kw): pass
is not.
I don't see any mention of it in the PEP but perhaps there is a good
reason this isn't allowed. It seems to be perfectly well-defined to
me.
-- 
Regards,
Benjamin


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /