[Python-Dev] Boolean transition

David Abrahams David Abrahams" <david.abrahams@rcn.com
Sun, 10 Mar 2002 21:54:28 -0500


----- Original Message -----
From: "Tim Peters" <tim.one@comcast.net>
To: <python-dev@python.org>
Sent: Sunday, March 10, 2002 8:17 PM
Subject: RE: [Python-Dev] Boolean transition


> [Greg Ewing]
> > We certainly don't need '&&' and '||' -- we already have them,
> > they're called 'and' and 'or'.
>
> They're not the same to David:  C && and || return 0 or 1, not sometimes
> their LHS or RHS argument.

Actually, I'm a C++ guy: && and || return false or true.
I think 'C99' also got some kind of _Bool type, but I don't know how it
acts.