Re: [Python-Dev] keyword-only arguments and varags

2011-06-05 Thread Benjamin Peterson
2011/6/5 Nick Coghlan : > On Sun, Jun 5, 2011 at 11:45 AM, Benjamin Peterson > wrote: >> 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

Re: [Python-Dev] keyword-only arguments and varags

2011-06-04 Thread Nick Coghlan
On Sun, Jun 5, 2011 at 11:45 AM, Benjamin Peterson wrote: > 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

[Python-Dev] keyword-only arguments and varags

2011-06-04 Thread Benjamin Peterson
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 ___