[Python-ideas] Positional only arguments

Steven Bethard steven.bethard at gmail.com
Mon May 21 10:16:57 CEST 2007


On 5/21/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.

I wasn't either, but I believe the PEP has already been accepted and
implemented.

STeVe
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy



More information about the Python-ideas mailing list