]> granicus.if.org Git - python/commit
Issue #1772851. Alters long.__hash__ from being *almost* completely
authorFacundo Batista <facundobatista@gmail.com>
Wed, 19 Sep 2007 15:10:06 +0000 (15:10 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Wed, 19 Sep 2007 15:10:06 +0000 (15:10 +0000)
commitd544df7ddd0f4910e2eae33a596fae8cb7a5d6cb
tree86e805b75d66b6bd04819877e496d19f92c90879
parent673debfd63409d5a103269f770db01be54279c80
Issue #1772851.  Alters long.__hash__ from being *almost* completely
predictable to being completely predictable.  The value of hash(n)
is unchanged for any n that's small enough to be representable as an
int, and also unchanged for the vast majority of long integers n of
reasonable size.
Lib/test/test_hash.py
Objects/longobject.c