pre-PEP: Suite-Based Keywords
Reinhold Birkenfeld
reinhold-birkenfeld-nospam at wolke7.net
Sun Apr 17 09:25:04 EDT 2005
Bengt Richter wrote:
> Stretching for it, using my latest and greatest ;-)
>
> y = f(**::
> x = 1
> y = 'y for f'
> )*g(**::
> x = 'x for g'
> y = 'y for g'
> def foo(): return 'foo for g'
> )
>
> Note that there is no problem adding other parameters, because ::<suite> is just
> a unary expression returning dict subtype instance, e.g.,
>
> y = f(11,22,**::
> x = 1
> y = 'y for f'
> )*g(*args_from_somewhere, **::
> x = 'x for g'
> y = 'y for g'
> def foo(): return 'foo for g'
> )
You know that this is dead ugly?
The real ``problem'' (if you see one) is that the indentation syntax
doesn't allow for suites in expressions.
Reinhold
More information about the Python-list
mailing list