Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.160 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.69; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'python': 0.11; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mythical': 0.16; 'objects.': 0.16; 'subject:versus': 0.16; 'words.': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'defined': 0.27; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; 'operators': 0.31; 'writes:': 0.31; "we're": 0.32; 'fri,': 0.33; 'actual': 0.34; 'operations': 0.35; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'ben': 0.38; 'pm,': 0.38; 'numbers': 0.61; 'entire': 0.61; 'range': 0.61; 'real': 0.63; 'more': 0.64; 'talking': 0.65; 'between': 0.67; 'mar': 0.68; 'yes': 0.68; '20,': 0.68; 'computers': 0.72; 'theoretical': 0.74; '2015': 0.84; 'careful': 0.91; 'to:none': 0.92 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-type:content-transfer-encoding; bh=lMh/lFNlFgAU5dM9Qp8Ej+fG9qPey73n6djaXYJCclI=; b=hn0VTiu8HfH682XdFhqC7DMsI4Vr/pqf0QrdXaDmPRoGtxcZVPG02/y5rwUm63A0mR GWM7Y2URKdnEgJxdq73IfGQoRyXasXpHImkVmSU3gQ/WimTZhQt0HkkmfEuWiv3EO41N GkM+nXoju+n3hRk9GNZjl8kGDXcf3FxMWRl82MFej23SauK7Gs191nbiW6JiS8Ig8avd 5ekoUlwBGJQxPQjXJ56u6jwHzu+T00DOm/23Sc3r1DNEGe9BVow2f/9Z2PDwmlKd40Fo mydUfsQkejP9yCn/htVSwS3iQyPf84NpWMrpuGWJSfyH/7Kd9KKN5sZXzFUvQF+lDAb3 nchw== MIME-Version: 1.0 X-Received: by 10.42.159.132 with SMTP id l4mr1654628icx.59.1426829278679; Thu, 19 Mar 2015 22:27:58 -0700 (PDT) In-Reply-To: <85pp846yr8.fsf@benfinney.id.au> References: <817c8567-1dbb-436c-8a1f-86446e30d12d@googlegroups.com> <85pp846yr8.fsf@benfinney.id.au> Date: Fri, 20 Mar 2015 16:27:58 +1100 Subject: Re: Deep comparison of dicts - cmp() versus ==? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1426829281 news.xs4all.nl 2856 [2001:888:2000:d::a6]:44923 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87764 On Fri, Mar 20, 2015 at 4:09 PM, Ben Finney wr= ote: > Chris Angelico writes: > >> Real numbers, yes [=E2=80=A6] but not IEEE floating point. Be careful of= that >> distinction; we're talking about computers here, not mythical numbers. > > So real numbers are mythical? IEEE floating point values are more real > than real numbers? Just what are you saying, man? Poor choice of words. Not "mythical", but "theoretical". Comparisons in Python are between actual representable numbers, not some theoretical entire range of reals. Python operators and operations are not defined in terms of real numbers, but objects. ChrisA