Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87764

Re: Deep comparison of dicts - cmp() versus ==?

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 <rosuav@gmail.com>
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 <d88b9040-b566-48fc-89e9-c6dffcd369bd@googlegroups.com> <mailman.31.1426818822.10327.python-list@python.org> <817c8567-1dbb-436c-8a1f-86446e30d12d@googlegroups.com> <f95ad316-cf77-42e6-b549-ccd185c3fbca@googlegroups.com> <CAPTjJmo8oVpaceqS1y47xLsNduUTE2zSii2VeEL_yrWrMexzbw@mail.gmail.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 <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.36.1426829281.10327.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Mar 20, 2015 at 4:09 PM, Ben Finney <ben+python@benfinney.id.au> wrote:
> Chris Angelico <rosuav@gmail.com> writes:
>
>> Real numbers, yes […] 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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Deep comparison of dicts - cmp() versus ==? Victor Hooi <victorhooi@gmail.com> - 2015-03-19 19:00 -0700
  Re: Deep comparison of dicts - cmp() versus ==? Ben Finney <ben+python@benfinney.id.au> - 2015-03-20 13:33 +1100
    Re: Deep comparison of dicts - cmp() versus ==? Victor Hooi <victorhooi@gmail.com> - 2015-03-19 19:57 -0700
      Re: Deep comparison of dicts - cmp() versus ==? Rustom Mody <rustompmody@gmail.com> - 2015-03-19 20:27 -0700
        Re: Deep comparison of dicts - cmp() versus ==? Chris Angelico <rosuav@gmail.com> - 2015-03-20 14:34 +1100
          Re: Deep comparison of dicts - cmp() versus ==? Rustom Mody <rustompmody@gmail.com> - 2015-03-19 20:47 -0700
            Re: Deep comparison of dicts - cmp() versus ==? Chris Angelico <rosuav@gmail.com> - 2015-03-20 15:35 +1100
            Re: Deep comparison of dicts - cmp() versus ==? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-20 17:35 +1100
              Re: Deep comparison of dicts - cmp() versus ==? Roy Smith <roy@panix.com> - 2015-03-20 08:49 -0400
              Re: Deep comparison of dicts - cmp() versus ==? Rustom Mody <rustompmody@gmail.com> - 2015-03-20 06:46 -0700
        Re: Deep comparison of dicts - cmp() versus ==? Ben Finney <ben+python@benfinney.id.au> - 2015-03-20 16:09 +1100
          Re: Deep comparison of dicts - cmp() versus ==? Rustom Mody <rustompmody@gmail.com> - 2015-03-20 06:35 -0700
            Re: Deep comparison of dicts - cmp() versus ==? Marko Rauhamaa <marko@pacujo.net> - 2015-03-20 16:10 +0200
              OT Intuitionism+Platonism+Mysticism => CS (was Deep comparison of dicts...) Rustom Mody <rustompmody@gmail.com> - 2015-03-20 23:01 -0700
                Re: OT Intuitionism+Platonism+Mysticism => CS (was Deep comparison of dicts...) Marko Rauhamaa <marko@pacujo.net> - 2015-03-21 08:28 +0200
                Re: OT Intuitionism+Platonism+Mysticism => CS (was Deep comparison of dicts...) Rustom Mody <rustompmody@gmail.com> - 2015-03-31 20:53 -0700
        Re: Deep comparison of dicts - cmp() versus ==? Chris Angelico <rosuav@gmail.com> - 2015-03-20 16:27 +1100

csiph-web