[EMAIL PROTECTED] wrote: > Steven D'Aprano: >> With the greatest respect, I think that if you think the second example >> "is more clear", you're completely bonkers. *grins* > It's amusing how often "with the greatest respect" is used to preface a statement that clearly implies very little respect at all. Though, for what it's worth, I agree with Steven here.
> No one is completely normal, I presume :-) > I'd like to know what others think about it, about this anti-feature. > What I can say is that other computer languages too think that boolean > operations must return boolean values only, so I am not alone in my > folly :-) > Other languages do indeed refuse the temptation to short-circuit, but that doesn't mean that Python is wrong to do so. It's a design choice, and while you are free to disagree with it I imagine you would be pissing in the wind in attempting to get a change like that into Python 3. Most people like the semantics of "and" and "or" as they are. no-more-normal-than-anyone-else-ly y'rs - steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list