New user's initial thoughts / criticisms of Python
Chris Angelico
rosuav at gmail.com
Sat Nov 9 18:29:48 EST 2013
On Sun, Nov 10, 2013 at 9:44 AM, Jonathan <jtcegh at gmail.com> 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.
ChrisA
More information about the Python-list
mailing list