[Python-3000] PEP 3102 comments

Benji York benji at benjiyork.com
Wed May 24 23:42:19 CEST 2006


Antoine Pitrou wrote:
> Le mercredi 24 mai 2006 à 17:15 -0400, Benji York a écrit :
> 
>>In that case, just use the current default value syntax, sans value (d, 
>>below):
>>
>>def f(a, b, c=None, d=):
> 
> Then we can't decide whether "c" can be positional or is keyword-only.

True.  As I suspect many do, I tend to conflate default arguments and 
keyword arguments.

It seems that this feature is doomed to ugly syntax.
--
Benji


More information about the Python-3000 mailing list