Sasha B added the comment:
Ruby uses the Murmur hash for some types (string & integer at least):
http://murmurhash.googlepages.com/
src: http://stackoverflow.com/a/3270836/1332819
The Perl hash implementation:
http://cpansearch.perl.org/src/NWCLARK/perl-5.8.8/hv.c
PHP5 hash implementa
Sasha B added the comment:
Ahh, I see. You are correct. Thanks.
--
___
Python tracker
<http://bugs.python.org/issue14898>
___
___
Python-bugs-list mailin
Changes by Sasha B :
--
components: +Build
type: -> behavior
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue14898>
___
___
Python-
New submission from Sasha B :
Not sure if this is predicted behaviour, but if I make a dict like:
>>> x = {0: 'bar', True: 'foo'}
and modify True with 1, or 0 with False:
>>> x[False] = 'boo'
>>> x[1] = 'far'
the modification
New submission from Sasha B :
If you have a look at the file 'python/Lib/json/encode.py', on line 30 it says:
# Assume this produces an infinity on all machines (probably not guaranteed)
INFINITY = float('1e6')
FLOAT_REPR = repr
Isn't float('Inf