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


Groups > comp.lang.python > #87759

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.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.122
X-Spam-Level *
X-Spam-Evidence '*H*': 0.78; '*S*': 0.02; 'integers': 0.09; 'satisfy': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mythical': 0.16; 'subject:versus': 0.16; 'wrote:': 0.18; '(not': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "we're": 0.32; 'fri,': 0.33; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'most': 0.60; 'numbers': 0.61; 'real': 0.63; 'talking': 0.65; 'mar': 0.68; '20,': 0.68; 'computers': 0.72; '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; bh=kAiA1RbPorNhqsvoyKo7xT4sw2jRV0CZFHjz+xblPVs=; b=s3CFGDLKMryeBde0jY55tvx09Onyd9khYmoY1prj5Qczo05vQkwC4LHLJKJisu5mXz HzG8bRVl132xqObhURlwAxPrcTouFiD/NNwBc2K4H0RIX26MF+5bCpPHX5f8U47ADcs/ G0zGG+SJja4boQks9ZM7rd+49/8TgKuJRm2EtKB8fYKE6bZ0QLCMcU0m7CyQAb8cwlJO 4mYXh3DeLHUX4uuImIw8av5xKh80iLnuD9cGeUas/RNwGQfWWjeAjMUQkKrZtjKnL8fX DQFjqbgBWWTDhSyEgXwtWqlpKpbQCKj6q0RlBuiiNBsWotqk8FnLm6c9iZtLoEGfU0Dd j4oA==
MIME-Version 1.0
X-Received by 10.107.16.31 with SMTP id y31mr77563641ioi.53.1426822494459; Thu, 19 Mar 2015 20:34:54 -0700 (PDT)
In-Reply-To <f95ad316-cf77-42e6-b549-ccd185c3fbca@googlegroups.com>
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>
Date Fri, 20 Mar 2015 14:34:54 +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
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.33.1426822502.10327.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1426822502 news.xs4all.nl 2901 [2001:888:2000:d::a6]:49324
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:87759

Show key headers only | View raw


On Fri, Mar 20, 2015 at 2:27 PM, Rustom Mody <rustompmody@gmail.com> wrote:
> Numbers (not complex) satisfy the trichotomy law: ie for any 2 numbers x,y:
> x < y or x > y o x = y

Real numbers, yes, and integers in most computer representations, but
not IEEE floating point. Be careful of that distinction; we're talking
about computers here, not mythical numbers.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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