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


Groups > comp.lang.python > #96821

Re: True == 1 weirdness

Path csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!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.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'that?': 0.05; 'claimed': 0.07; 'implements': 0.07; 'seemed': 0.07; 'received:internal': 0.09; 'semantics': 0.09; 'python': 0.10; 'python.': 0.11; 'chained': 0.16; 'combinations': 0.16; 'dislike': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'really?': 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; 'header:In-Reply-To:1': 0.24; 'fri,': 0.27; 'used,': 0.27; 'comparison': 0.29; "i'm": 0.30; "d'aprano": 0.33; 'operations.': 0.33; 'steven': 0.33; 'equal': 0.34; 'should': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'claim': 0.61; 'header :Message-Id:1': 0.61; 'provide': 0.61; 'citation': 0.84; 'claim.': 0.84; 'maths': 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:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=mmvC5gJkUzJfg1uNnuxTjYfatGU=; b=MzVY+Y Lrm9XvEtp/8sMe/jlGDlVGVz/D+zLA/5vUFUg1hBG5QJQ+44plUG6Z7xDjvTaNnH 1PSsPB0PoDtdI/ScEPEitANljl1peJ48bzlxGOc0/NbOZnn9vJsGmSjz5vZWW17U i03R9ztlF5R0FdlgutwXAnsXmYAGmVhTdJI4k=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=mmvC5gJkUzJfg1u NnuxTjYfatGU=; b=tUsf+Ppwwg7KoGe1PVMFqLFNYM6jbDfcKHklLc1A6U0MZZU cIs1QyXLKFXY4tkAw7l24MKrC9qBaUyKKmy2oXqPKHI+IvZ3y8WzAYPMSh5yloLy V7reVfkBC5nKer4xSMOhPE0xCGeusItFPnsk5Zilryabnuk4Dn8mrO146Khg=
X-Sasl-Enc fiqrEfmFHJSNdwzT7UL3zyEXEGOLZteclq3Qn3NkTnKd 1442583652
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
In-Reply-To <55fc0e4d$0$1645$c3e8da3$5496439d@news.astraweb.com>
References <mailman.30.1442580482.16376.python-list@python.org> <55fc0e4d$0$1645$c3e8da3$5496439d@news.astraweb.com>
Subject Re: True == 1 weirdness
Date Fri, 18 Sep 2015 09:40:52 -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.32.1442583655.16376.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1442583655 news.xs4all.nl 23720 [2001:888:2000:d::a6]:60413
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:96821

Show key headers only | View raw


On Fri, Sep 18, 2015, at 09:14, Steven D'Aprano wrote:
> On Fri, 18 Sep 2015 10:47 pm, Random832 wrote:
> 
> > 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.
> 
> Really? You're disputing that chained comparisons are a standard maths
> notation?

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] or a in b in c. Your claim seemed to be that these combinations *are*
used, since you claimed that python implements the *same* semantics.

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