Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91450 > unrolled thread
| Started by | random832@fastmail.us |
|---|---|
| First post | 2015-05-29 08:09 -0400 |
| Last post | 2015-05-29 08:09 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Logic problem: need better logic for desired thruth table. random832@fastmail.us - 2015-05-29 08:09 -0400
| From | random832@fastmail.us |
|---|---|
| Date | 2015-05-29 08:09 -0400 |
| Subject | Re: Logic problem: need better logic for desired thruth table. |
| Message-ID | <mailman.175.1432901875.5151.python-list@python.org> |
On Thu, May 28, 2015, at 23:48, Chris Angelico wrote: > On Fri, May 29, 2015 at 1:20 PM, <random832@fastmail.us> wrote: > > The possibility of spelling these with the comparison operators, as some > > have suggested, is a consequence of Python's implementation where True > > == 1 and False == 0. In other languages bool may not be relatable (or at > > least not orderable), or False may be == -1. > > True. Gah. I said "False may be -1", but what I *meant* was that *True* may be -1: something that has some merit for bitwise logic (-1 is all-bits-1). This is, for example, used in pre-.NET incarnations of Visual Basic (and COM's VARIANT_BOOL type inherits from this). VB, incidentally, has its own spellings for these operators, with the "Imp" and "Eqv" operators.
Back to top | Article view | comp.lang.python
csiph-web