Webware vs. PHP - performance comparision!!!

Ian Bicking ianb at colorstudy.com
Mon Oct 6 13:50:34 EDT 2003


On Monday, October 6, 2003, at 11:45 AM, Mitch Chapman wrote:
> 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)."

You are correct, I was thrown by a statement I'm not used to seeing.  
Something weird was happening with wget -m, but now I don't know what.

   Ian






More information about the Python-list mailing list