[Python-Dev] [Python-checkins] cpython: enable hash randomization by default (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Tue Feb 21 23:53:39 CET 2012
- Previous message: [Python-Dev] [Python-checkins] cpython (2.6): ensure no one tries to hash things before the random seed is found
- Next message: [Python-Dev] Windows build - fixing compile warnings before VS2010
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] [Python-checkins] cpython (2.6): ensure no one tries to hash things before the random seed is found
- Next message: [Python-Dev] Windows build - fixing compile warnings before VS2010
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]