On Tue, Feb 9, 2010 at 5:07 PM, Srinivas Reddy Thatiparthy
<srinivas_thatipar...@akebonosoft.com> wrote:
>
>>>Formally, if a, b, c, ..., y, z  are expressions and op1, op2, ...,
> opN are comparison operators, then a op1 b  op2 c ... y opN  z is
> equivalent to a op1 b and  b op2 c and ...  y opN z, except that each
> expression is evaluated at most once.
>
>
> Ok..Got it...
> Especially last sentence caught my eye..
> Does the python compiler behaves same for below expression also?
>
> 1.If(a<b and b<c):
>
> My guess  is, it behaves the same but just wanna double check..

With this, I think it's possible that 'b' might be evaluated more than
once. Perhaps if it's an object property or something.


-- 
~noufal
http://nibrahim.net.in
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to