Verbose and flexible args and kwargs syntax
Eelco Hoogendoorn
hoogendoorn.eelco at gmail.com
Sun Dec 11 09:58:18 EST 2011
As for syntax; what about coopting/integrating with the function
annotation syntax?
so:
def func(args: list, kwargs: attrdict)
and correspondingly in the function call?
a, b:tuple = someiterable?
I guess a rule that interprets every function argument annotated as a
subclass of list or dict as a special case would severely restrict its
intended use though...
More information about the Python-list
mailing list