Path: csiph.com!news.swapon.de!news.roellig-ltd.de!open-news-network.org!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: 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; '16,': 0.03; 'operator': 0.03; 'false.': 0.07; 'problem?': 0.07; 'seemed': 0.07; '"could': 0.09; 'here?': 0.09; 'received:internal': 0.09; 'wed,': 0.15; 'at,': 0.16; 'hazard': 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; 'typo': 0.16; 'wrote:': 0.16; '(see': 0.20; 'assuming': 0.22; 'lawrence': 0.22; 'sep': 0.22; 'trying': 0.22; 'header:In-Reply-To:1': 0.24; 'context,': 0.29; 'correct,': 0.29; 'implied': 0.29; "i'm": 0.30; "i'd": 0.31; 'guess': 0.31; 'statement': 0.32; "d'aprano": 0.33; 'steven': 0.33; 'equal': 0.34; 'structure': 0.34; 'except': 0.34; 'could': 0.35; 'should': 0.36; 'there': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'where': 0.40; 'mark': 0.40; 'some': 0.40; 'header:Message-Id:1': 0.61; 'directed': 0.81; '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=JV6v13KWhs+fldl70ceTs77//Kc=; b=PAzWCZ h3KqKCkRtE97EBjBSp73ZfKXyIIyprkP0vFVsJ10DSVy5d+L9YtSUW5d+sFkC6HO PgNZEPXNulBOL0YFGnb0a4WmtJKEkBbNoCLrjx+IWV6BGv8SZXMqf6DBL994i+Ee tHLP0pSQOuIWAi3QvDjKh4nUlsondSK6341qE= 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=JV6v13KWhs+fldl 70ceTs77//Kc=; b=fXd7Q022h1PtmJW14vg0LuoAjy64fYK6L6QHuZAk3P0xTzc 0o9NBkPkKYp6+M+0P7+HCTfrVQKr0f9asgFjpGy2Rb+g8XaTpWRScdQL1wWwyoKN 32j545un76nIGN/kZqYw3vV3ysxgk2MYKuppw0z6Mwlzpbwx18muaaCV9/hg= X-Sasl-Enc: jmRfgr09fF/XdTCjEwMqoLS+R1MRc1CEUM8/WVyAXPQi 1442436907 From: Random832 To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-746d2121 In-Reply-To: References: <0b949fe0-09b4-46b0-b4ac-a85a9bfebfd5@googlegroups.com> <1442412230.1762717.385286049.20841F36@webmail.messagingengine.com> <55f9a7e4$0$1661$c3e8da3$5496439d@news.astraweb.com> <55F9A9C1.7060001@mail.de> Subject: Re: True == 1 weirdness Date: Wed, 16 Sep 2015 16:55:07 -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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442436910 news.xs4all.nl 23767 [2001:888:2000:d::a6]:33022 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96722 On Wed, Sep 16, 2015, at 16:38, Mark Lawrence wrote: > On 16/09/2015 18:41, Sven R. Kunze wrote: > > On 16.09.2015 19:33, Steven D'Aprano wrote: > >> And with operator overloading, < <= > and => could have any meaning you > >> like: > >> > >> graph = a => b => c <= d <= e > > > > Sorry? What are you trying to do here? > > Typo I'd hazard a guess at, should be graph = a >= b >= c <= d <= e > > Assuming that I'm correct, graph is True if a is greater than or equal > to b and b is greater than equal to c and c is less than or equal to d > and d is less than or equal to e else False. So where is the problem? Except in context, he was suggesting that they have a meaning other than "greater than or equal" and "less than or equal". (see "could have any meaning you like"). It seemed implied that he was suggesting there was some arrangement of operator overloads that could cause this statement to generate a directed graph with the structure shown.