For review: PEP 308 - If-then-else expression

Andrew Dalke adalke at mindspring.com
Sat Feb 8 19:34:53 EST 2003


Paul Rubin:
>   maximum = x if (x > y) else y
>
> seems more confusing than
>
>   maximum = (x > y) ? x : y

seems more confusing then

  maximum = max(x, y)

;)
                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list