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
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
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
___