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; '*not*': 0.07; 'statically': 0.07; 'naturally': 0.09; 'spec': 0.09; 'typed': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'collections.': 0.16; 'obviously,': 0.16; 'programmers,': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'zero,': 0.16; 'zero.': 0.16; 'zeroes': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'case.': 0.24; 'java': 0.24; 'cc:2**0': 0.24; 'define': 0.26; 'performing': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'decimal': 0.31; 'responded': 0.31; 'subject:numbers': 0.31; 'subject:other': 0.31; 'fri,': 0.33; 'could': 0.34; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'c++': 0.36; 'surely': 0.36; 'doing': 0.36; 'should': 0.36; 'detail': 0.37; 'two': 0.37; 'does': 0.39; 'itself': 0.39; 'numbers': 0.61; 'matter': 0.61; 'times': 0.62; 'kind': 0.63; 'more': 0.64; 'different': 0.65; 'bag': 0.74; 'surprise': 0.74; '2015': 0.84; 'multiplying': 0.84; 'sorry.': 0.91; 'from.': 0.93; 'imagine': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=c1vwUGP/y+r2s4Fq7hGHKn3B5WRD2x9z6uV/7LJFgaU=; b=kMaHCs+KKPGLrilvWoMjeiwOcSh+p9SFUGnTqDGsNubZfNAf1FhE0PFA2AXOXXx+eX yhBFTpHGm+gqdqm01eIM6BhNVLpLvqkffawq/RtbgGRCi7JTbYtICpXsCe9N1NmguVE5 dz/iNqmOQv8AnFcp8GOqIo3ZOFzIu8D60mvB00XFD+cFTKkhj37im8Vq1MSlZ8Q+zafo HwhWxEP41ypsuvydRQT5Ab2+/oNoKbCtGc3qxWi96J2fDSnIA2p8iHUIT5MBk7hWsTUH hy4WKOACA7k3lTCq3E0flev20gQxHnTHPdaV8BEIRjVx5lMicWla3ndVnxiQbcqrgklM WL8g== X-Received: by 10.140.21.229 with SMTP id 92mr23368453qgl.33.1420794722295; Fri, 09 Jan 2015 01:12:02 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <54AF405C.6020609@davea.name> <54af9612$0$12995$c3e8da3$5496439d@news.astraweb.com> From: Devin Jeanpierre Date: Fri, 9 Jan 2015 01:11:21 -0800 Subject: Re: Decimals and other numbers To: "Steven D'Aprano" Content-Type: text/plain; charset=UTF-8 Cc: "comp.lang.python" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1420795186 news.xs4all.nl 2966 [2001:888:2000:d::a6]:54383 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:83417 On Fri, Jan 9, 2015 at 12:58 AM, Devin Jeanpierre wrote: >> Arguably, *integer* 0**0 could be zero, on the basis that you can't take >> limits of integer-valued quantities, and zero times itself zero times >> surely has to be zero. I should have responded in more detail here, sorry. If you aren't performing any multiplication, why does it matter what numbers you are "multiplying"? Doing no multiplications of five is the same as doing no multiplications of two is the same as doing no multiplications of... 0. You can define it to be 0 but only if you are multiplying an empty bag of zeroes, but it's hard to imagine what makes an empty bag of zeroes different from an empty bag of fives. It really surely is *not* the case. Obviously, this kind of ridiculousness comes naturally to Java and C++ programmers, with their statically typed collections. It's no surprise that's where the Decimal spec came from. ;) -- Devin