[Python-ideas] Positional only arguments
Georg Brandl
g.brandl at gmx.net
Tue May 22 17:04:18 CEST 2007
Aaron Brady schrieb:
>> -----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.
I'd prefer no compromises being made when it comes to PEP 3117.
Georg
More information about the Python-ideas
mailing list