Path: csiph.com!goblin1!goblin.stu.neva.ru!uio.no!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: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 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; 'python.': 0.11; 'wed,': 0.15; 'at,': 0.16; 'hazard': 0.16; 'typo': 0.16; 'wrote:': 0.16; '>>>': 0.20; '(see': 0.20; 'ascii': 0.22; 'assuming': 0.22; 'lawrence': 0.22; 'sep': 0.22; 'trying': 0.22; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; '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; 'received:10.0': 0.34; 'best,': 0.35; 'could': 0.35; 'should': 0.36; 'there': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'to:addr:python.org': 0.40; 'where': 0.40; 'mark': 0.40; 'received:de': 0.40; 'some': 0.40; 'art': 0.62; 'charset:windows-1252': 0.62; 'introduce': 0.79; 'directed': 0.81; 'subject:True': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mail201212; t=1442437423; bh=ReO9LKOTmNG7CEWTHVkyseXYMEmRXuVoaB9oKY/6Jec=; h=Subject:To:References:From:Date:In-Reply-To:From; b=H6rMkgRtKUijdQ/RbbeOv5hhKmSFnIXIRnjek18llkXk6tRpLdPI5yRNRXvtmh73l a81YrZqqSZ7ZaZxg8Y6e1frY7uZrIXxxb2arMlZcshcCLxXOif9k6yFPsKftQ3rxRF 8bL967hWZw4xEW8RaalBoigaMJ1oS7+A3kzrFfPE= Subject: Re: True == 1 weirdness To: python-list@python.org 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> <1442436907.1857884.385688025.352D99A1@webmail.messagingengine.com> From: "Sven R. Kunze" Date: Wed, 16 Sep 2015 23:03:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1442436907.1857884.385688025.352D99A1@webmail.messagingengine.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1116 X-purgate-ID: 154282::1442437423-000007B2-1DA53B0E/0/0 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1442437425 news.xs4all.nl 23849 [2001:888:2000:d::a6]:36591 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:96723 On 16.09.2015 22:55, Random832 wrote: > 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. Yes. Let's introduce ASCII art an way to describe graphs in Python. Best, Sven