Webware vs. PHP - performance comparision!!!
Peter Hansen
peter at engcorp.com
Mon Oct 6 14:35:02 EDT 2003
François Pinard wrote:
>
> [Ian Bicking]
> > There was also a problem in your code,
>
> > if 0 < i < 100: ...
>
> > This isn't proper Python, it's interpreted as (0 < i) < 100.
>
> Python is not PL/I. :-) What is improper in PL/I might be proper in
> Python. "if 0 < i < 100:" is interpreted as "if (0 < i) and (i < 100):".
> I do not know, however, if `i' is evaluated once or twice.
As was just mentioned in another thread yesterday, it's evaluate only once.
-Peter
More information about the Python-list
mailing list