It's called TWICE , no matter with or without side effects. I asked this on SO,somebody came up with this answer!
>>> def check():
print 'Called Once'
return 2
>>> 1<check()<3
Called Once
True
>>> 1<check() and check()<3
Called Once
Called Once
True
>>>
Happy Hacking.
Regards,
~ Srini T
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers
