[Python-ideas] Positional only arguments
Aaron Brady
castironpi at comcast.net
Tue May 22 12:03:54 CEST 2007
> -----Original Message-----
> From: python-ideas-bounces at python.org [mailto:python-ideas-
> bounces at python.org] On Behalf Of Aaron Brady
> Sent: Tuesday, May 22, 2007 4:45 AM
> > -----Original Message-----
> > From: python-ideas-bounces at python.org [mailto:python-ideas-
> > bounces at python.org] On Behalf Of Ron Adam
> >
> > def f(; a, b=2, c=3;): No positional only, no keyword only
>
> @f( 'k' )
> def j( k ):
> ...
>
> gets unwieldy and could show promise. Cf. Steven's positional only
> arguments decorator.
Cf. PEP 3102 Talin http://www.python.org/dev/peps/pep-3102/
Cf. PEP 3107 Winder and Lownds http://www.python.org/dev/peps/pep-3107/
Cf. PEP 3117 Brandl http://www.python.org/dev/peps/pep-3117/
def f( @k, @j )
Half-way compromise to Brandl, only in declaration not in use, and always
optional.
More information about the Python-ideas
mailing list