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 02:59:53 +1000 Lines: 26 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> <87oa7wra4d.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 8imqQUBAGL7+xJYL+qpZlwu/FHdu/lDg3Y9Sa4bFmB/g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'used.': 0.05; 'counting': 0.07; 'defines': 0.07; 'cc:addr:python-list': 0.09; 'subject:while': 0.09; 'python': 0.10; 'times,': 0.13; '2016': 0.16; '24,': 0.16; 'binary,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'languages)': 0.16; 'obviously,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:make': 0.16; 'sure.': 0.16; 'third,': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'converted': 0.22; 'programming': 0.22; 'am,': 0.23; 'defined': 0.23; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'point.': 0.27; 'not.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'idea': 0.28; 'decimal': 0.29; 'there.': 0.30; "can't": 0.32; 'point': 0.33; 'third': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'something': 0.35; 'received:74.125.82': 0.35; 'but': 0.36; 'there': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'anything': 0.38; 'why': 0.39; 'ever': 0.60; 'close': 0.61; 'yes': 0.62; 'subject: / ': 0.63; 'different': 0.63; 'miss': 0.77; 'chrisa': 0.84; 'recall,': 0.84; 'subject:else': 0.84; 'subject:sense': 0.84; 'to:none': 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; bh=Y9pqYSp7SCk2qniYd3wA3RZpxnAxwxosvJEQ9DMsQVA=; b=U7uTDyEBc28CatNmmYU16xHbB9kbfDLkhu7EuEEf/6RCEvWDrLoH5IhQ8wtFEHvcBF 3qObm/34JN3HA1720S5f83SJMUDDK6+nvkHnshkVbXlbkTmb3SIa84m6+mKSHTD/3xZj qqyy7fqMZrVVJkf49t6r5EHpRbBBB6vMYgzFsbSGlxlsNNqgnR1CK5Tn31QipJD0NQtw OeJ5VEOnvW0gEqEWNfNOWig398vYRhu5vB9uSzV0Hj0t6JEdCE2Owv+M28qL7av/wqoS GdrAsd7woCghS9cgmcy5hIcI3i5lM71XclOfqDYlyz6fLxvPhnK2QWIkMBIDrgoBTAsP NRSQ== 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; bh=Y9pqYSp7SCk2qniYd3wA3RZpxnAxwxosvJEQ9DMsQVA=; b=egd2gD5hqFrB8OIf++aKsPL1tleJ83hHlydQxCsLV9UxtGOqyGV1HcDZ9iz/Py5mpy UkvM9ezGVPiYqIXN7RuXlPUtFhRwYx/tgG/g6lz7Je+m1tap9m7CTsKcjQ1sZ8QHKrL0 kzox+Dk0E6Ti9qHItrFXPQl/uzM1HtioCsD8QXtpm/03nyv15AdUWgJR06c0GJDcuM7c lCOLMchPd98jOuEUEOfTP9RY7Q+waj29y+j9pcSC47JHFAfQHcg6eAfCGM2WSUx1S+bi x7c0WGuib1oFrMVBJsTl7msYXug4U08LHfBZ7WGpYYpHims5jm40fBtDDBsIvHYvrHbi UP8A== X-Gm-Message-State: AOPr4FUEzKDg+mAvt8OZmxOcu28DTsPZcl2bAUWGDRbbrKUpLvCrK3nvQurwFGtCrUfet8B2DTTS52hAziiS1Q== X-Received: by 10.194.86.129 with SMTP id p1mr17524456wjz.117.1464022793754; Mon, 23 May 2016 09:59:53 -0700 (PDT) In-Reply-To: <87oa7wra4d.fsf@bsb.me.uk> 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> <87oa7wra4d.fsf@bsb.me.uk> Xref: csiph.com comp.lang.python:109010 On Tue, May 24, 2016 at 2:51 AM, Ben Bacarisse wrote: > Chris Angelico writes: > >> 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 ? > > Not that I recall, but, obviously, I can't be sure. I can't even tell > without counting how many 3s there are there. Why do you ask? > >> Because that's also >> something very very close to one third. > > Yes it is, but I don't get what point you are making. You asserted that representing one third as something almost, but not exactly, one third was a new idea. It is not. Ever since ancient times, approximations have been used. Python is no different from anything else; the only reason it _looks_ different is that it's an approximation in binary, converted to decimal for display. ChrisA