New user's initial thoughts / criticisms of Python

Chris Angelico rosuav at
Sun Nov 10 00:29:48 CET 2013

On Sun, Nov 10, 2013 at 9:44 AM, Jonathan <jtcegh at> wrote:
> In pythonic syntax:
> select <expression0>:
>   case <case expression>,[<case expression>],:
> which is equivalent to:   elif <expression0> = <expression1>:
> which is equivalent to:   elif <expression0> <binary-operator>

Small clarification: It's more akin to assigning <expression0> to a
temporary, and then comparing that temporary against everything. It's
only evaluated once. Otherwise, yes, as you describe.


More information about the Python-list mailing list