Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96845

Re: True == 1 weirdness

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Gregory Ewing <greg.ewing@canterbury.ac.nz>
Newsgroups comp.lang.python
Subject Re: True == 1 weirdness
Date Sat, 19 Sep 2015 19:19:33 +1200
Lines 13
Message-ID <d64gk7Fhc3vU1@mid.individual.net> (permalink)
References <mailman.30.1442580482.16376.python-list@python.org> <55fc0e4d$0$1645$c3e8da3$5496439d@news.astraweb.com> <mailman.32.1442583655.16376.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net IPF7EHld2hLLqCEkPVG3FQTbdYRkOevpIH5GEWn+uDWcg+5CPt
Cancel-Lock sha1:UYr6gwRHFAFevLYPPaIv+zgLvww=
User-Agent Mozilla Thunderbird 1.0.5 (Macintosh/20050711)
X-Accept-Language en-us, en
In-Reply-To <mailman.32.1442583655.16376.python-list@python.org>
Xref csiph.com comp.lang.python:96845

Show key headers only | View raw


Random832 wrote:
> I'm disputing that chained comparisons are used for the particular
> combinations that I am actually arguing should not be used in python.
> Such as a < b > c or a != b != c  [whereas a may or may not be equal to
> c]

I can't remember offhand seeing a != b != c written by a
mathematician, but if I did, I would suspect that he
*intended* it to imply a != c, even if that's not a strict
logical consequence of the notation.

-- 
Greg

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: True == 1 weirdness Random832 <random832@fastmail.com> - 2015-09-18 08:47 -0400
  Re: True == 1 weirdness Steven D'Aprano <steve@pearwood.info> - 2015-09-18 23:14 +1000
    Re: True == 1 weirdness Random832 <random832@fastmail.com> - 2015-09-18 09:40 -0400
      Re: True == 1 weirdness Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-09-19 19:19 +1200
    Re: True == 1 weirdness Terry Reedy <tjreedy@udel.edu> - 2015-09-18 14:24 -0400
    Re: True == 1 weirdness Random832 <random832@fastmail.com> - 2015-09-18 15:12 -0400
      Re: True == 1 weirdness Jussi Piitulainen <harvesting@makes.email.invalid> - 2015-09-19 09:23 +0300
    Re: True == 1 weirdness Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-18 15:13 -0600
    Re: True == 1 weirdness Random832 <random832@fastmail.com> - 2015-09-18 17:21 -0400

csiph-web