Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: for / while else doesn't make sense Date: Tue, 24 May 2016 01:57:14 +1000 Lines: 20 Message-ID: References: <5741cde9$0$1587$c3e8da3$5496439d@news.astraweb.com> <57422e03$0$1596$c3e8da3$5496439d@news.astraweb.com> <85r3ct9zt2.fsf@benfinney.id.au> <5742bacb$0$1526$c3e8da3$5496439d@news.astraweb.com> <87zirgrgol.fsf@bsb.me.uk> <5743260b$0$1601$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de /mkAHVZQAKwlNIXlsMojtwqVaIHQxkJIb2bdNQAEinFQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'defines': 0.07; 'cc:addr :python-list': 0.09; 'subject:while': 0.09; 'python': 0.10; '12:57': 0.16; '2016': 0.16; '24,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'languages)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:make': 0.16; 'third,': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'programming': 0.22; 'am,': 0.23; 'defined': 0.23; '(or': 0.23; 'written': 0.24; 'header:In- Reply-To:1': 0.24; 'chris': 0.26; 'point.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'idea': 0.28; 'third': 0.33; "d'aprano": 0.33; 'purposes,': 0.33; 'steven': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'something': 0.35; 'received:74.125.82': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'enough': 0.39; 'ever': 0.60; 'close': 0.61; 'subject: / ': 0.63; 'miss': 0.77; 'chrisa': 0.84; 'subject:else': 0.84; 'subject:sense': 0.84; 'to:none': 0.91; '1:47': 0.91; 'new!': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-transfer-encoding; bh=qpx4PvMdPZz3ki0EQyc09ZHRF4nrmDjS6WmSMx8fwAA=; b=iO5gBtpt392N3JjRwqkFG/XJDBNp9ReDsG0Z322mybyOJcHHCDCzvLjItdOIzBNroG ssa4G8neddCI+OH4sQuCMLMRyFJ/D7+BfQwB7mlBv7AYvJ3a0hZ9BcttdgZt3Le6/Vay LejZNWe/KjDFNYj84KP8qsKxlPbLvUhHxusgb/5OtTH7ZjwAteAombqvqhyXx6X1U8d3 iYueEMQz4o3LIT7erQ6/3XH7U8eZ4Fc6Npnq5apFM5+qvj6uTEiLaHpsEJ9QSpxA9YiN 4BAbD4oz3P/khag3VuIMifk+TVYzM8XmkjMXCKGN+79z/FIPpuqn1tkj0GU9laSVEFtM DFhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-transfer-encoding; bh=qpx4PvMdPZz3ki0EQyc09ZHRF4nrmDjS6WmSMx8fwAA=; b=LxERIXl/5nX/xp8vnTax91JDp/86JxFmfo2UlfyrBp4YU+zGv6NktrYQc14abphfN2 AvVE4++BXpSRqt4pkNvJCsSNEyeKX3W+kXSJ1EQXFaJ3f0H8cVX+HR1zChAsoyOWh58Z 65Gw26+7x8eN1WFdCunbdvrcy1dmx/MATEAw7WNB9yyEMdo+8hORTBhbhcsg3qLjY48S 65hUEMaKVyb3oZXc3wLTLNmSvB3HQWqt15EsFhSBuhy849EVJlKPtPP4xhBkjykgBR07 cZJJ7A4MQgKPqZAI6ZHg9mTpoBVvdz9lWBXNQCn8WnIQEBWq1zq/ddkCmwFnPnQqlr7q svXg== X-Gm-Message-State: ALyK8tKlsjipolQkwY3FOpApELSXI5FwSAZ6Qj4VQVLcUIPpLKFqJI9/I7iTLcUKaypnLs233g2AJK6OAdGZYQ== X-Received: by 10.28.19.71 with SMTP id 68mr1481127wmt.61.1464019034463; Mon, 23 May 2016 08:57:14 -0700 (PDT) In-Reply-To: <5743260b$0$1601$c3e8da3$5496439d@news.astraweb.com> 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: X-Mailman-Original-References: <5741cde9$0$1587$c3e8da3$5496439d@news.astraweb.com> <57422e03$0$1596$c3e8da3$5496439d@news.astraweb.com> <85r3ct9zt2.fsf@benfinney.id.au> <5742bacb$0$1526$c3e8da3$5496439d@news.astraweb.com> <87zirgrgol.fsf@bsb.me.uk> <5743260b$0$1601$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:109004 On Tue, May 24, 2016 at 1:47 AM, Steven D'Aprano wrot= e: > On Tue, 24 May 2016 12:57 am, Chris Angelico wrote: > >> On Tue, May 24, 2016 at 12:29 AM, Ben Bacarisse >> wrote: >>> Right, but this is to miss the point. Let's say that 4000 years have >>> defined 1/3 to be one third, but Python 3 (as do many programming >>> languages) defines 1/3 to be something very very very very close to one >>> third, and *that* idea is very very very very new! >> >> Have you ever written one third as 0.33333333 ? Because that's also >> something very very close to one third. > > For many purposes, 0.33 is close enough to one third. As is 3.14 close enough to =CF=80. (Or 256/81 or any of the other historical values.) Approximations are nothing new. ChrisA