[Python-Dev] hash randomization in 3.3 (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Tue Feb 21 22:55:02 CET 2012


Should you be able to disable it? No, but you should be able to provide a seed.

Why exactly is that?

We should take an attitude that Python hash values are completely arbitrary and can change at any point without notice. The only strict requirement should be that hashing must be consistent with equality; everything else should be an implementation detail.

With that attitude, supporting explicit seeds is counter-productive.

Regards, Martin



More information about the Python-Dev mailing list