Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: MRAB Newsgroups: comp.lang.python Subject: Re: for / while else doesn't make sense Date: Mon, 23 May 2016 02:51:28 +0100 Lines: 32 Message-ID: References: <573EC62F.4090401@lucidity.plus.com> <573f9322$0$1616$c3e8da3$5496439d@news.astraweb.com> <5741cde9$0$1587$c3e8da3$5496439d@news.astraweb.com> <57422e03$0$1596$c3e8da3$5496439d@news.astraweb.com> <403cf3d2-4fa3-bd90-ad7f-6e938d056cf3@mrabarnett.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de prZMJNNp8pkkUjU+dt+4CQ/Vl+3+5CWne82aYLAZeWUw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'correct.': 0.07; 'defines': 0.07; '2001,': 0.09; 'subject:while': 0.09; 'python': 0.10; 'languages.': 0.15; 'mathematics': 0.15; 'result.': 0.15; '2016': 0.16; '23,': 0.16; 'argument.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:192.168.1.4': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:make': 0.16; 'wrote:': 0.16; '2.2': 0.18; 'circular': 0.18; '>>>': 0.20; 'library': 0.20; 'not,': 0.22; 'saying': 0.22; 'doc': 0.22; 'trying': 0.22; 'am,': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'header:User-Agent:1': 0.26; 'chris': 0.26; 'defining': 0.27; 'arithmetic': 0.29; 'division': 0.29; 'pep': 0.29; "i'm": 0.30; 'functional': 0.32; 'returned': 0.32; 'point': 0.33; "d'aprano": 0.33; 'requirement.': 0.33; 'steven': 0.33; 'symbol': 0.33; 'necessary.': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'beyond': 0.37; 'missing': 0.37; 'requirement': 0.37; "won't": 0.38; 'why': 0.39; 'received:192': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'some': 0.40; 'software': 0.40; 'him': 0.60; 'your': 0.60; 'no.': 0.62; 'subject: / ': 0.63; 'march': 0.64; 'world': 0.64; 'today': 0.65; '>>>>>': 0.66; '4000+': 0.84; 'bored': 0.84; 'conversation': 0.84; 'divide': 0.84; 'proves': 0.84; 'subject:else': 0.84; 'subject:sense': 0.84; 'yours': 0.89; 'dating': 0.91; 'imagine': 0.96 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=K//fZHiI c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=Lpnxw2taAAAA:8 a=kZ7UWmmPAAAA:8 a=3EfNmUrj3_ryPjgKVEgA:9 a=-uzlL6Mba2h7OzeH:21 a=1XiME8LmJIisEziF:21 a=QEXdDO2ut3YA:10 a=6kGIvZw6iX1k4Y-7sg4_:22 a=pmyglsfvk19HgfJtHojG:22 a=bhUXWH8T1GBspWohBEiP:22 X-AUTH: mrabarnett@:2500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <403cf3d2-4fa3-bd90-ad7f-6e938d056cf3@mrabarnett.plus.com> X-Mailman-Original-References: <573EC62F.4090401@lucidity.plus.com> <573f9322$0$1616$c3e8da3$5496439d@news.astraweb.com> <5741cde9$0$1587$c3e8da3$5496439d@news.astraweb.com> <57422e03$0$1596$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:108973 On 2016-05-23 02:00, Jon Ribbens wrote: > On 2016-05-23, Chris Angelico wrote: >> On Mon, May 23, 2016 at 10:36 AM, Jon Ribbens >> wrote: >>> On 2016-05-22, Steven D'Aprano wrote: >>>> On Mon, 23 May 2016 01:52 am, Jon Ribbens wrote: >>>>> On 2016-05-22, Steven D'Aprano wrote: >>>>>> How is this any better though? Complicated or not, people want to divide >>>>>> 1 by 2 and get 0.5. That is the functional requirement. Furthermore, they >>>>>> want to use the ordinary division symbol / rather than having to import >>>>>> some library or call a function. >>>>> >>>>> That's a circular argument. You're defining the result as the >>>>> requirement and then saying that proves the result is necessary. >>>>> Clearly, people managed when 1/2 returned 0, and continue to do so >>>>> today in Python 2 and other languages. >>>> >>>> I'm not defining the result. 4000+ years of mathematics defines the result. >>> >>> OK, I'm bored of you now. You clearly are not willing to imagine >>> a world beyond your own preconceptions. I am not saying that my view >>> is right, I'm just saying that yours is not automatically correct. >>> If you won't even concede that much then this conversation is pointless. >> >> The point of arithmetic in software is to do what mathematics defines. >> Would you expect 1+2 to return 5? No. Why not? Where was the result >> defined? > > Are you trying to compete with him for the Missing The Point Award? > The relevant doc is PEP 238, dating to March 2001, when Python 2.2 was new.