]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix for test_class.py on Win64. id(self), which on Win64 returns a
authorTrent Mick <trentm@activestate.com>
Wed, 4 Oct 2000 17:50:59 +0000 (17:50 +0000)
committerTrent Mick <trentm@activestate.com>
Wed, 4 Oct 2000 17:50:59 +0000 (17:50 +0000)
commitd68d0a6f5a0a4af255d6a73e236166d42f8b76b6
tree5ecae6313bf927e8e7749b751d1854de246acbb7
parentb2c2c9e9776e69d4d7860f89ef385885a6938ea5
Fix for test_class.py on Win64. id(self), which on Win64 returns a
PyLong, was used for the return value of a class __hash__ method, which
*must* return a PyInt. Solution: hash() the id(self) value.
Lib/test/test_class.py