]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
* Simplify hash function and add test to show effectiveness of the hash
authorRaymond Hettinger <python@rcn.com>
Sun, 23 Nov 2003 02:49:05 +0000 (02:49 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 23 Nov 2003 02:49:05 +0000 (02:49 +0000)
commit49ba4c39c49ff6b1db666e6c90365fc1361c4a64
tree442b73b24c7d6590eb24f4b4d3b1a95465a23c23
parentbaf0f8f24da7a541a403cd9848cebc451beb069d
* Simplify hash function and add test to show effectiveness of the hash
  function.

* Add a better test for deepcopying.

* Add tests to show the __init__() function works like it does for list
  and tuple.  Add related test.

* Have shallow copies of frozensets return self.  Add related test.

* Have frozenset(f) return f if f is already a frozenset. Add related test.

* Beefed-up some existing tests.
Lib/test/test_set.py
Objects/setobject.c