Order of evaluation in conditionals
Karlo Lozovina
_karlo_ at mosor.net
Mon Feb 25 16:41:20 EST 2008
Paul Hankin wrote:
> Did you try to find the answer to your question in the python
> reference manual? The relevant page is
> http://docs.python.org/ref/Booleans.html
Of course I first Googled (even Google Groups-ed) it, but I didn't notice
that in the results.
> To quote it:
> The expression 'x and y' first evaluates x; if x is false, its value
> is returned; otherwise, y is evaluated and the resulting value is
> returned.
Thanks (to both of you :>), that's it.
--
Karlo Lozovina -- Mosor
More information about the Python-list
mailing list