[Python-modules-team] Bug#749710: workaround

Johannes Schauer j.schauer at email.de
Mon Oct 13 07:22:19 UTC 2014

Control: block 764909 by -1


On Thu, 29 May 2014 17:16:01 +0200 Johannes Schauer <j.schauer at email.de> wrote:
> a workaround is to
> as described in [1] which will then lead to a deterministic result.

unfortunately, while this is enough to create stable output within an
architecture, it varies between 32 and 64 bit architectures because the output
of the hash() function varies between 32 and 64 bit architectures. The
following produces different output depending on whether it is run on a 32 or
64 bit architecture:

	PYTHONHASHSEED=0 python3 -c 'print(hash("a"))'

Thus it is blocking #764909 on 32 bit architectures because the test cases were
created for 64 bit.

cheers, josch

More information about the Python-modules-team mailing list