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: 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: References: <817c8567-1dbb-436c-8a1f-86446e30d12d@googlegroups.com> Date: Fri, 20 Mar 2015 14:34:54 +1100 Subject: Re: Deep comparison of dicts - cmp() versus ==? From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Fri, Mar 20, 2015 at 2:27 PM, Rustom Mody 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