[Python-Dev] [Python-checkins] cpython: enable hash randomization by default

Nick Coghlan ncoghlan at gmail.com
Tue Feb 21 23:53:39 CET 2012


On Wed, Feb 22, 2012 at 7:08 AM, benjamin.peterson
<python-checkins at python.org> wrote:
> +      Changing hash values affects the order in which keys are retrieved from a
> +      dict.  Although Python has never made guarantees about this ordering (and
> +      it typically varies between 32-bit and 64-bit builds), enough real-world
> +      code implicitly relies on this non-guaranteed behavior that the
> +      randomization is disabled by default.

That last sentence needs to change for 3.3

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list