Webware vs. PHP - performance comparision!!!
Mitch Chapman
mitchchapman at earthlink.net
Mon Oct 6 12:45:12 EDT 2003
Ian Bicking wrote:
> There was also a problem in your code,
>
> if 0 < i < 100: ...
>
> This isn't proper Python, it's interpreted as (0 < i) < 100.
Eh? I thought it was proper Python:
From http://www.python.org/doc/current/ref/comparisons.html
"Comparisons can be chained arbitrarily, e.g., x < y <= z is equivalent
to x < y and y <= z , except that y is evaluated only once (but in
both cases z is not evaluated at all when x < y is found to be false)."
--
Mitch
More information about the Python-list
mailing list