[Python-ideas] Positional only arguments

Greg Ewing greg.ewing at canterbury.ac.nz
Mon May 21 09:45:31 CEST 2007


Steven Bethard wrote:
> On 5/21/07, Adam Olsen <rhamph at gmail.com> wrote:
> 
> > All positional
> > arguments get sucked up in *args so key *must* be keyword-only.
> 
> This may not be so obvious anymore now that we have extended iterable
> unpacking from `PEP 3132`_.  Given an iterable unpacking like::
> 
>     a, b, *c, d = iterable

I'm not in favour of allowing a * which isn't at the end
here, for various reasons, one of which is that it weakens
the analogy with call signatures.

--
Greg



More information about the Python-ideas mailing list