lambdak: multi-line lambda implementation in native Python

Jussi Piitulainen jpiitula at ling.helsinki.fi
Sat Jan 17 07:54:43 EST 2015


Marko Rauhamaa writes:

> Seriously, though, I hate the optional semicolon rules of JavaScript
> and Go. I dread the day when GvR gets it in his head to allow this
> syntax in Python:
> 
>    average_drop_rate = cumulative_drop_count /
>        observation_period
> 
> (although, it could be defined Pythonesquely thus: "a spurious
> indentation means line continuation" — no more backslashes).

I do that:

   average_drop_rate = ( cumulative_drop_count /
                         observation_period )



More information about the Python-list mailing list