Re: Changing Hash Values Across Versions

2009-06-11 Thread Mark Dickinson
On Jun 11, 8:55 pm, Christian Heimes wrote: > Phil Thompson schrieb: > > > How stable should the implementation of, for example, a string's hash > > across different Python versions? > > > Is it defined that hash("foo") will return the same value for Python 2.5.1, > > 2.6.1 and 2.6.2? > > The hash

Re: Changing Hash Values Across Versions

2009-06-11 Thread Christian Heimes
Phil Thompson schrieb: > How stable should the implementation of, for example, a string's hash > across different Python versions? > > Is it defined that hash("foo") will return the same value for Python 2.5.1, > 2.6.1 and 2.6.2? The hash of an object is an internal implementation detail. The has

Re: Changing Hash Values Across Versions

2009-06-11 Thread Gabriel Genellina
En Thu, 11 Jun 2009 13:56:17 -0300, Phil Thompson escribió: How stable should the implementation of, for example, a string's hash across different Python versions? I cannot find any such guarantee in the documentation: http://docs.python.org/reference/datamodel.html Is it defined that hash

Re: Changing Hash Values Across Versions

2009-06-11 Thread Scott David Daniels
Phil Thompson wrote: How stable should the implementation of, for example, a string's hash across different Python versions? Is it defined that hash("foo") will return the same value for Python 2.5.1, 2.6.1 and 2.6.2? Thanks, Phil Pretty certain that A.B.* will always hash the same (unacceptab

Changing Hash Values Across Versions

2009-06-11 Thread Phil Thompson
How stable should the implementation of, for example, a string's hash across different Python versions? Is it defined that hash("foo") will return the same value for Python 2.5.1, 2.6.1 and 2.6.2? Thanks, Phil -- http://mail.python.org/mailman/listinfo/python-list