This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ardabro
Recipients ardabro
Date 2014-12-01.11:18:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1417432708.23.0.68936690634.issue22973@psf.upfronthosting.co.za>
In-reply-to
Content
built-in hash() function cannot be effectively used for integers due to 
weird behavior for -1 argument:

>>> hash(0)
0
>>> hash(-1)
-2                # !!!!!
>>> hash(-2)
-2
>>> hash(-3)
-3
>>>
History
Date User Action Args
2014-12-01 11:18:28ardabrosetrecipients: + ardabro
2014-12-01 11:18:28ardabrosetmessageid: <1417432708.23.0.68936690634.issue22973@psf.upfronthosting.co.za>
2014-12-01 11:18:28ardabrolinkissue22973 messages
2014-12-01 11:18:28ardabrocreate