[BangPypers] date range

Noufal Ibrahim noufal at gmail.com
Tue Feb 9 12:56:59 CET 2010

On Tue, Feb 9, 2010 at 5:07 PM, Srinivas Reddy Thatiparthy
<srinivas_thatiparthy at 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.


More information about the BangPypers mailing list