syntax for preset locals without using dummy args with defaults
Andrew Dalke
adalke at mindspring.com
Fri Jan 10 20:36:16 EST 2003
Terry Reedy wrote:
>> def foo(x, y=default)(z=some_expression):
>
>
> -1/2 on this syntax. I would prefer ';' instead of ',' to mark end of
> run-time variable params and start of define-tine fixed params. Have
> no idea how difficult it would be to have compiler differentiate
> between this and ';' as statement separator.
Just so I know, do you mean like
def spam(x, y=default; z=some_expression):
...
?
I like the look of that better.
Andrew
dalke at dalkescientific.com
More information about the Python-list
mailing list