]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Merged revisions 69440 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Sun, 8 Feb 2009 15:11:29 +0000 (15:11 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 8 Feb 2009 15:11:29 +0000 (15:11 +0000)
commitf593d9cc828a148b094230a641900d6a844500ac
tree62e1197b70600436a677ddeed24ef022511b2d81
parent167b85c710f58c0fc2022d53681c1454421e4ced
Merged revisions 69440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r69440 | mark.dickinson | 2009-02-08 15:09:21 +0000 (Sun, 08 Feb 2009) | 17 lines

  Merged revisions 69436 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r69436 | mark.dickinson | 2009-02-08 14:42:28 +0000 (Sun, 08 Feb 2009) | 10 lines

    Issue #789290: make sure that hash(2**63) == hash(2.**63) on 64-bit
    platforms.  The previous code was fragile, depending on the twin
    accidents that:

      (1) in C, casting the double value 2.**63 to long returns the integer
          value -2**63, and
      (2) in Python, hash(-2**63) == hash(2**63).

    There's already a test for this in test_hash.
  ........
................
Objects/object.c