if <assignment>:
sismex01 at hebmex.com
sismex01 at hebmex.com
Mon Nov 25 10:38:11 EST 2002
> From: André Næss [mailto:andre.hates.spam at ifi.uio.no]
> Sent: Sunday, November 24, 2002 8:00 AM
>
> When I started learning Python one of the things that
> surprised me was that you couldn't do assignments inside
> the if clause, e.g.:
>
> if myvar = someFunction():
>
Why does it surprise you?
Most all languages, except those of C descent, don't
have if <assignment>.
-gustavo
More information about the Python-list
mailing list