Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!amsnews11.chello.com!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python': 0.08; 'dev': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'broken': 0.12; 'algorithm': 0.13; 'received:dip.t-dialin.net': 0.16; 'received:t-dialin.net': 0.16; 'wrote:': 0.16; 'discussion': 0.21; 'from:addr:web.de': 0.23; 'string': 0.24; 'code': 0.25; 'function': 0.27; 'hash': 0.30; 'strings.': 0.30; 'understands': 0.30; 'anyone': 0.31; 'does': 0.32; 'to:addr:python-list': 0.33; 'there': 0.33; 'nobody': 0.34; 'header:X-Complaints-To:1': 0.34; 'question': 0.35; 'list,': 0.37; 'received:org': 0.37; 'stable': 0.38; 'steven': 0.38; 'mailing': 0.38; 'being': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'stability': 0.67 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: Hash stability Date: Sat, 14 Jan 2012 10:46:35 +0100 Organization: None References: <4f1107b7$0$29988$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p50849099.dip.t-dialin.net X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326534409 news.xs4all.nl 6945 [2001:888:2000:d::a6]:54876 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18967 Steven D'Aprano wrote: > On the Python Dev mailing list, there is a discussion going on about the > stability of the hash function for strings. > > How many people rely on hash(some_string) being stable across Python > versions? Does anyone have code that will be broken if the string hashing > algorithm changes? Nobody who understands the question ;)