Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(no) fast boolean evaluation ?
- From: bruno.42.desthuilliers at wtf.websiteburo.oops.com (Bruno Desthuilliers)
- Subject: (no) fast boolean evaluation ?
- Date: Fri, 03 Aug 2007 10:20:59 +0200
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...
- Follow-Ups:
- (no) fast boolean evaluation ?
- From: Steven D'Aprano
- (no) fast boolean evaluation ?
- References:
- (no) fast boolean evaluation ?
- From: Stef Mientki
- (no) fast boolean evaluation ?
- From: Evan Klitzke
- (no) fast boolean evaluation ?
- Prev by Date: __call__ considered harmful or indispensable?
- Next by Date: File Handling & TRY/EXCEPT
- Previous by thread: (no) fast boolean evaluation ?
- Next by thread: (no) fast boolean evaluation ?
- Index(es):