[Python-Dev] hash randomization in 3.3

Antoine Pitrou solipsis at pitrou.net
Tue Feb 21 23:07:10 CET 2012


On Tue, 21 Feb 2012 22:51:48 +0100
"Martin v. Löwis" <martin at v.loewis.de> wrote:
> Am 21.02.2012 20:59, schrieb Antoine Pitrou:
> > On Tue, 21 Feb 2012 14:58:41 -0500
> > Benjamin Peterson <benjamin at python.org> wrote:
> >> 2012/2/21 Antoine Pitrou <solipsis at pitrou.net>:
> >>>
> >>> Hello,
> >>>
> >>> Shouldn't it be enabled by default in 3.3?
> >>
> >> Should you be able to disable it?
> > 
> > PYTHONHASHSEED=0 should disable it.  Do we also need a command-line
> > option?
> 
> On the contrary. PYTHONHASHSEED should go in 3.3, as should any
> facility to disable or otherwise fix the seed.

Being able to reproduce exact output is useful to chase sporadic test
failures (as with the --randseed option to regrtest).

Regards

Antoine.


More information about the Python-Dev mailing list