(no) fast boolean evaluation ?

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Fri Aug 3 10:20:59 CEST 2007

Joshua J. Kugler a écrit :
> On Thursday 02 August 2007 15:19, Evan Klitzke wrote:
>>> I discovered that boolean evaluation in Python is done "fast"
>>> (as soon as the condition is ok, the rest of the expression is ignored).
>> This is standard behavior in every language I've ever encountered.
> Then you've never programmed in VB (at least 6, don't know if .net still
> does this).  Nested IF statements. AAAAAAAAAAAAAAAAAAAACK! 

I do remember an even brain-deadiest language that not only didn't 
short-circuit boolean operators but also didn't have an "elif" statement...

More information about the Python-list mailing list