On Thu, Feb 18, 2016 at 12:29 AM, Larry Hastings <la...@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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to