python3: 'where' keyword

Andrey Tatarinov elephantum at dezcom.mephi.ru
Sun Jan 9 06:05:31 EST 2005


Paul Rubin wrote:
> You mean I can't say
> 
>    # compute sqrt(2) + sqrt(3)
>    x = (sqrt(a) where:
>          a = 2.) \
>        + sqrt (a) where:
>            a = 3.

No, I'd prefer to not embed 'where' into expression.



More information about the Python-list mailing list