A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-February/143381.html below:

[Python-Dev] Hash randomization for which types?

[Python-Dev] Hash randomization for which types? [Python-Dev] Hash randomization for which types?Chris Angelico rosuav at gmail.com
Wed Feb 17 08:49:58 EST 2016
On Thu, Feb 18, 2016 at 12:29 AM, Larry Hastings <larry at hastings.org> wrote:
> int objects have their own hash algorithm, built in to long_hash() in
> Objects/longobject.c.  The hash of an int is the value of the int, unless
> it's -1 or doesn't fit into the native type.

Can someone elaborate on this special case, please? I can see the code
there, but there's no comment. Is there some value in not hashing to
-1?

ChrisA
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4