[Python-Dev] Hash randomization for which types?
Glenn Linderman
v+python at g.nevcal.com
Tue Feb 16 14:56:55 EST 2016
On 2/16/2016 1:48 AM, Christoph Groth wrote:
> Hello,
>
> Recent Python versions randomize the hashes of str, bytes and datetime
> objects. I suppose that the choice of these three types is the result
> of a compromise. Has this been discussed somewhere publicly?
Search archives of this list... it was discussed at length.
> I'm not a web programmer, but don't web applications also use
> dictionaries that are indexed by, say, tuples of integers?
Sure, and that is the biggest part of the reason they were randomized.
I think hashes of all types have been randomized, not _just_ the list
you mentioned.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160216/4fbfcf7b/attachment.html>
More information about the Python-Dev
mailing list