<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_hash.py, branch 2.3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_hash.py?h=2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_hash.py?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-07-23T19:04:11Z</updated>
<entry>
<title>Get rid of relative imports in all unittests.  Now anything that</title>
<updated>2002-07-23T19:04:11Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-07-23T19:04:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=04f357cffef6d764f2f0ff2671dabde75ec250d1'/>
<id>urn:sha1:04f357cffef6d764f2f0ff2671dabde75ec250d1</id>
<content type='text'>
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
</content>
</entry>
<entry>
<title>Change the PyUnit-based tests to use the test_main() approach.  This</title>
<updated>2001-09-20T21:33:42Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-09-20T21:33:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2e2be3760ccdfd4bdde4afdd66f4078022ba3b61'/>
<id>urn:sha1:2e2be3760ccdfd4bdde4afdd66f4078022ba3b61</id>
<content type='text'>
allows using the tests with unittest.py as a script.  The tests will
still run when run as a script themselves.
</content>
</entry>
<entry>
<title>Update a comment.</title>
<updated>2001-05-18T21:50:02Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-05-18T21:50:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=acb117eb111f4f6d0f6e7942357e7c3afe6b70f7'/>
<id>urn:sha1:acb117eb111f4f6d0f6e7942357e7c3afe6b70f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simple conversion to PyUnit.</title>
<updated>2001-05-18T21:45:35Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-05-18T21:45:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97656a1c823706c2ee5d0b9e3d6d7be0c0550d9f'/>
<id>urn:sha1:97656a1c823706c2ee5d0b9e3d6d7be0c0550d9f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make reindent.py happy (convert everything to 4-space indents!).</title>
<updated>2000-10-23T17:22:08Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-10-23T17:22:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=004d5e6880940ddbb38460986ac62ee0f1bae97d'/>
<id>urn:sha1:004d5e6880940ddbb38460986ac62ee0f1bae97d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>This patch addresses two main issues: (1) There exist some non-fatal</title>
<updated>2000-06-29T19:17:04Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-06-29T19:17:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=13634cf7a407202777285172a57cfcddb20a2047'/>
<id>urn:sha1:13634cf7a407202777285172a57cfcddb20a2047</id>
<content type='text'>
errors in some of the hash algorithms. For exmaple, in float_hash and
complex_hash a certain part of the value is not included in the hash
calculation. See Tim's, Guido's, and my discussion of this on
python-dev in May under the title "fix float_hash and complex_hash for
64-bit *nix"

(2) The hash algorithms that use pointers (e.g. func_hash, code_hash)
are universally not correct on Win64 (they assume that sizeof(long) ==
sizeof(void*))

As well, this patch significantly cleans up the hash code. It adds the
two function _Py_HashDouble and _PyHash_VoidPtr that the various
hashing routine are changed to use.

These help maintain the hash function invariant: (a==b) =&gt;
(hash(a)==hash(b))) I have added Lib/test/test_hash.py and
Lib/test/output/test_hash to test this for some cases.
</content>
</entry>
</feed>
