Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'bug': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'objects.': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'implied': 0.31; 'received:google.com': 0.35; 'subject:?': 0.36; 'should': 0.36; 'two': 0.37; 'christian': 0.38; '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=UksjZTc97FbLWEACqJCv+3G7Low6X7SrlY6P2KCx6YY=; b=ESye0rikeC//FpnGOElvP/yo363NyDGZImEzweOaPXwLnItB/JpmFYZa2RG+XSb5Se bLGzAwj81YT81YNp0AELBroNv9J6oX4miVnOfZTrCvu0rkBgkNJKbwz+cVRMO1J2+dNA UlciPKkOXyFJMDtBPK3PeYjH/9wr8jWSfEzoI6AO5YYLEJyBD++DAERep7oZi4VApU68 r3wBw20KW3vX5bZNuFaWaMJgIc3z3cuAeQHKh2MmHnM9EJ+lZ/Cer0sjbv3IDLauSER7 LllEPnXmRfKGQxI6pVBTaHlbFzPGPKkAoJyaNJlM04RdswpUL8mFVXr+Ntn+ObP90jwf qFfw== MIME-Version: 1.0 X-Received: by 10.221.30.14 with SMTP id sa14mr1386277vcb.44.1399477109310; Wed, 07 May 2014 08:38:29 -0700 (PDT) In-Reply-To: References: <18f61e5d-f47b-4373-a835-67c6f20ef3d1@googlegroups.com> Date: Thu, 8 May 2014 01:38:29 +1000 Subject: Re: Normal dict behavior? 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.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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399477117 news.xs4all.nl 2884 [2001:888:2000:d::a6]:50002 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71034 On Thu, May 8, 2014 at 1:34 AM, Christian Heimes wrote: > hash(0) == hash(0.0) and 0 == 0.0 In theory, the former should be implied by the latter. Any deviation from that is a bug in __hash__ for the two objects. ChrisA