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


Groups > comp.lang.python > #71034

Re: Normal dict behavior?

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 <rosuav@gmail.com>
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 <lkdjq2$g45$1@ger.gmane.org>
References <18f61e5d-f47b-4373-a835-67c6f20ef3d1@googlegroups.com> <lkdj00$239$1@ger.gmane.org> <lkdjq2$g45$1@ger.gmane.org>
Date Thu, 8 May 2014 01:38:29 +1000
Subject Re: Normal dict behavior?
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.15
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.9741.1399477117.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Thu, May 8, 2014 at 1:34 AM, Christian Heimes <christian@python.org> 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

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


Thread

Normal dict behavior? antoine <boolegue@gmail.com> - 2014-05-07 08:06 -0700
  Re: Normal dict behavior? Ned Batchelder <ned@nedbatchelder.com> - 2014-05-07 11:20 -0400
  Re: Normal dict behavior? Chris Angelico <rosuav@gmail.com> - 2014-05-08 01:22 +1000
  Re: Normal dict behavior? Christian Heimes <christian@python.org> - 2014-05-07 17:34 +0200
  Re: Normal dict behavior? Chris Angelico <rosuav@gmail.com> - 2014-05-08 01:38 +1000

csiph-web