[Python-3000] parameter lists [was: Type Expressions]
Ron Adam
rrr at ronadam.com
Fri Apr 21 20:27:29 CEST 2006
Greg Ewing wrote:
> Ron Adam wrote:
>
>> Or just ...
>>
>> def f(a, b, c=?, d=x):
>
> But there's nothing about this that particularly
> suggests that c *must* be specified with a keyword.
> It looks like just another positional arg with a
> rather strange-looking default.
The strange default would after a while be easily recognized for what it
is, "A missing value which needs to be replaced at call time", but Guido
said there won't be a generic NULL. So we can cross this one off.
This would have indicated required keywords that are also positional,
but not indicate required keywords that are non-positional. An actual
syntax is needed for that instead of a Value placeholder.
Your single '*' syntax which Guido now prefers fills this need better. ;-)
Cheers,
Ron
More information about the Python-3000
mailing list