[Python-ideas] Before and after the colon in funciton defs.
hetchkay at gmail.com
Wed Sep 21 09:37:40 CEST 2011
To me that's like a 'static' declaration in C++, which in Python might
> be something like:
> def f(a):
> static len=len
> static alist=
> return len(alist)
> What follows 'static' would be an assignment which is executed when the
> function is defined, much like a default argument, and would be shared
> between invocations in the same way.
> How about
def f(a) with len as len,  as alist:
Or if "len as len" is redundant:
def f(a) with len,  as alist:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas