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
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com