Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96832
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.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.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'operator': 0.03; 'binary': 0.05; 'context': 0.05; 'used.': 0.05; 'claimed': 0.07; 'implements': 0.07; 'seemed': 0.07; 'semantic': 0.07; 'implies': 0.09; 'notation.': 0.09; 'received:internal': 0.09; 'semantics': 0.09; 'python': 0.10; 'python.': 0.11; 'combinations': 0.16; 'expression"': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'op1': 0.16; 'op2': 0.16; 'operator.': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:compute4.internal': 0.16; 'received:messagingengine.com': 0.16; 'reedy': 0.16; 'set,': 0.16; 'something.': 0.16; 'wrote:': 0.16; 'obviously': 0.16; 'math': 0.20; 'meant': 0.22; 'saying': 0.22; "aren't": 0.22; 'latter': 0.22; 'sep': 0.22; 'header:In-Reply-To:1': 0.24; 'all.': 0.24; "doesn't": 0.26; 'connected': 0.27; 'equivalent': 0.27; 'fri,': 0.27; 'used,': 0.27; 'comparison': 0.29; 'notation': 0.29; "i'm": 0.30; 'operations': 0.31; 'related': 0.32; 'statement': 0.32; 'combination': 0.33; 'ordered': 0.33; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'totally': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'two': 0.37; 'expect': 0.37; 'things': 0.38; 'received:66': 0.38; 'wrong': 0.38; 'anything': 0.38; 'copying': 0.38; 'mean': 0.38; 'means': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'ever': 0.60; 'your': 0.60; 'claim': 0.61; 'header:Message-Id:1': 0.61; 'between': 0.65; 'believe': 0.66; 'natural': 0.67; 'examples.': 0.84; 'irrelevant': 0.84; 'understood.': 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=2Zkf/qw8MA/Y3YU4UvQn4yEy5iE=; b=mH8bBZ 14Ws9zJMBXj1QGJdJazl65o3cA4xOHdDaJ+v3JhWQ9XOxcQYEI1d9wgrnxhVqjlq 8azUVJMb8bijw/HvIpkdvyNYvmUBbAuoubf6TeTpl7s5jb+LhWOqf5NvukdfJBA8 ylWoIcEgvD+1loeOhdonH1jegMLBEDMAU8mIw= |
| 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=2Zkf/qw8MA/Y3YU 4UvQn4yEy5iE=; b=DKxBufhOyDVtdi4Tx3K8KmGlJV7hr/ORjat+Rh6iVWc/Vwx 3nISQJsbjg/+JXfUye/l1t2YxuRYz5lP4mhgeBHXVgjoE+2A4U3sr4m22EKFwtaj ivTy3jFeizDc8rr54T1T+qVi9oybymHyXkwM9bjDwiiiUCwvzHX/2yrQb5wU= |
| X-Sasl-Enc | +ZaSYlg6qIC8syyC6lxQAf0iQz895BqokJ7r9uh3K+BG 1442603558 |
| 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 | <mthktk$q5p$1@ger.gmane.org> |
| References | <mailman.30.1442580482.16376.python-list@python.org> <55fc0e4d$0$1645$c3e8da3$5496439d@news.astraweb.com> <1442583652.2433512.387297097.0C910B45@webmail.messagingengine.com> <mthktk$q5p$1@ger.gmane.org> |
| Subject | Re: True == 1 weirdness |
| Date | Fri, 18 Sep 2015 15:12:38 -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.2.1442603566.21674.python-list@python.org> (permalink) |
| Lines | 32 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1442603566 news.xs4all.nl 23739 [2001:888:2000:d::a6]:47084 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 6056 |
| X-Received-Body-CRC | 2443184764 |
| Xref | csiph.com comp.lang.python:96832 |
Show key headers only | View raw
On Fri, Sep 18, 2015, at 14:24, Terry Reedy wrote: > If a, b, c are members of a totally ordered set, so that < is > transitive, this is equivalent to max(a,c) < b. But the latter makes an > irrelevant comparison between a and c. But *who would write that?* It's not a natural form of notation. I'm not saying it doesn't mean anything in Python. Obviously everything that is allowed means something. I'm saying no-one would write that in an ordinary context of human communication and expect to be understood. > > Your claim seemed to be that these combinations *are* > > used, since you claimed that python implements the *same* semantics. > > The semantics Python copies from math is "a op b op c == a op b and b op > c", I don't believe those *are* the semantics in math. I believe that in math this notation is *specifically* meant to support "all of these things are related to all of the others in ways that can be summarized in a single expression" and that mixing operations in a way that does not allow that is a misuse of the notation. In other words, any "a op b op c" that does not allow you to make a statement on how a is related to c is a *mistake*, because it means that you're welding together two things that aren't logically connected to each other at all. If there is no operator op3 where a op1 b op2 c implies a op3 c, then you should not put a and c in the same inequality, full stop. > where 'op' is a binary predicate or comparison operator. I also > happen to believe you are wrong in the specific examples. But the > semantic copying would apply even if a particular combination had not > yet ever been used.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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