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


Groups > comp.lang.python > #96818

Re: True == 1 weirdness

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <random832@fastmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; 'implements': 0.07; 'received:internal': 0.09; 'semantics': 0.09; 'dislike': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'wrote:': 0.16; 'why.': 0.18; 'language': 0.19; '2015': 0.20; 'sep': 0.22; 'am,': 0.23; 'fri,': 0.27; 'comparison': 0.29; "d'aprano": 0.33; 'operations.': 0.33; 'steven': 0.33; 'should': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'provide': 0.61; 'skip:n 10': 0.62; 'citation': 0.84; 'claim.': 0.84; 'subject:True': 0.93
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=lw+ YwVoxMayL0rZgJ69D5ROTNbg=; b=mO7clWsHL7nekTXHucObBOT3apf5NPZgnrL Hkniu8+6zWl2DBNfmrSZGegjmERmVly8u26YVqH/TNaKbRPNb+RXbQm2Ba8uxpi2 JLys+RX+xvr+ZNFk3I1Wp4emHT7UzKNmywvg66jEyBMHT5tSgzNVZLpkUVVeGfTB WF/Ahgiw=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=lw+YwVoxMayL0rZgJ69D5ROTNbg=; b=U50f/ ZC8GtNKYEbXKjJZ2Te3B0jAw31AY5JwjIGJvmnNdJipXnk5tCxwWZ4x6PeDp8CBW ewtxUPt27Wr1iXvYX5IcKBv58Nfm2RYyRoemaQ8BcxqId3naPU+xhxIBWdjtILcF vTomP3fmB7rFV5v+AxfcHwDVtTh87Vbway8BSQ=
X-Sasl-Enc atrk8Wf9Mt1VKnoufwohA4pW4cggTGUw14TUcCnBboaG 1442580479
From Random832 <random832@fastmail.com>
To python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-e92f8263
Subject Re: True == 1 weirdness
Date Fri, 18 Sep 2015 08:47:59 -0400
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.30.1442580482.16376.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1442580482 news.xs4all.nl 23869 [2001:888:2000:d::a6]:44559
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:96818

Show key headers only | View raw


On Fri, Sep 18, 2015, at 08:30, Steven D'Aprano wrote:
> On Fri, 18 Sep 2015 07:26 am, Random832 wrote:
> 
> > I don't even think chaining should
> > work for all *actual* comparison operations.
> 
> I don't see why. Mathematicians chain comparisons all the time. If the
> language implements the same semantics as mathematicians already use, why
> do you dislike that?

Please provide a citation for this claim.
 
> Only if the comparisons are transitive, which they may not be. 

My *entire point* is that it *shouldn't be used* for non-transitive
comparisons!!!

Back to comp.lang.python | Previous | NextNext 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