<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_set.py, branch v2.5c2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_set.py?h=v2.5c2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_set.py?h=v2.5c2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-04-11T00:43:27Z</updated>
<entry>
<title>Try to repair more new buildbot failures in "x86 OpenBSD trunk", due</title>
<updated>2006-04-11T00:43:27Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-04-11T00:43:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6902b44406ba2940dd7f34b7ec77e2ea13ff2e66'/>
<id>urn:sha1:6902b44406ba2940dd7f34b7ec77e2ea13ff2e66</id>
<content type='text'>
to that id() can now return a Python long on a 32-bit box that allocates
addresses "with the sign bit set".

test_set.py test_subclass_with_custom_hash():  it's never been portably
legal for a __hash__() method to return id(self), but on 32-bit boxes
that never caused a problem before it became possible for id() to
return a Python long.  Changed __hash__ here to return a Python int
regardless of platform.

test_descr.py specials():
    vereq(hash(c1), id(c1))
has never been a correct test -- just removed it (hash() is always
a Python int; id() may be a Python long).
</content>
</entry>
<entry>
<title>SF patch #1458476 with modifications based on discussions in python-dev.  This</title>
<updated>2006-03-30T22:45:35Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2006-03-30T22:45:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=176014ffad8d39820293b63bf7177a7d2953343a'/>
<id>urn:sha1:176014ffad8d39820293b63bf7177a7d2953343a</id>
<content type='text'>
adds the following API calls: PySet_Clear(), _PySet_Next(), and
_PySet_Update().  The latter two are considered non-public.  Tests and
documentation (for the public API) are included.
</content>
</entry>
<entry>
<title>Renamed _length_cue() to __length_hint__().  See:</title>
<updated>2006-02-11T21:32:43Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2006-02-11T21:32:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f5b3e36493da275334e29afdbd238863697dca35'/>
<id>urn:sha1:f5b3e36493da275334e29afdbd238863697dca35</id>
<content type='text'>
http://mail.python.org/pipermail/python-dev/2006-February/060524.html
</content>
</entry>
<entry>
<title>Improve test coverage.  Hope the test_file changes work the same on windows.</title>
<updated>2005-11-27T20:37:43Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2005-11-27T20:37:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fcf4435ae02c3962a8ad71a9539877060c694468'/>
<id>urn:sha1:fcf4435ae02c3962a8ad71a9539877060c694468</id>
<content type='text'>
</content>
</entry>
<entry>
<title>No longer ignore exceptions raised by comparisons during key lookup.</title>
<updated>2005-09-16T07:14:21Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-09-16T07:14:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9bda1d6f645bd0f3e76c14f27bbbac919814cd38'/>
<id>urn:sha1:9bda1d6f645bd0f3e76c14f27bbbac919814cd38</id>
<content type='text'>
Inspired by Armin Rigo's suggestion to do the same with dictionaries.
</content>
</entry>
<entry>
<title>Numerous fix-ups to C API and docs.  Added tests for C API.</title>
<updated>2005-08-16T10:44:15Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-08-16T10:44:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c47e01d02021253dd9f8fd4ced6eb663436431bb'/>
<id>urn:sha1:c47e01d02021253dd9f8fd4ced6eb663436431bb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Fix SF #1257731.  Make __contains__(), remove(), and discard() only do</title>
<updated>2005-08-12T23:58:22Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-08-12T23:58:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97979ddc141b88cfd81bdf02404d0337a603f7cf'/>
<id>urn:sha1:97979ddc141b88cfd81bdf02404d0337a603f7cf</id>
<content type='text'>
  a frozenset conversion when the initial search attempt fails with a
  TypeError and the key is some type of set.  Add a testcase.

* Eliminate a duplicate if-stmt.
</content>
</entry>
<entry>
<title>* Add short-circuit code for in-place operations with self (such as</title>
<updated>2005-08-11T07:58:45Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-08-11T07:58:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c991db240ca8ea838c6acb0c8dc5300dca23c39e'/>
<id>urn:sha1:c991db240ca8ea838c6acb0c8dc5300dca23c39e</id>
<content type='text'>
  s|=s, s&amp;=s, s-=s, or s^=s).  Add related tests.

* Improve names for several variables and functions.

* Provide alternate table access functions (next, contains, add, and discard)
  that work with an entry argument instead of just a key.  This improves
  set-vs-set operations because we already have a hash value for each key
  and can avoid unnecessary calls to PyObject_Hash().  Provides a 5% to 20%
  speed-up for quick hashing elements like strings and integers.  Provides
  much more substantial improvements for slow hashing elements like tuples
  or objects defining a custom __hash__() function.

* Have difference operations resize() when 1/5 of the elements are dummies.
  Formerly, it was 1/6.  The new ratio triggers less frequently and only
  in cases that it can resize quicker and with greater benefit.  The right
  answer is probably either 1/4, 1/5, or 1/6.  Picked the middle value for
  an even trade-off between resize time and the space/time costs of dummy
  entries.
</content>
</entry>
<entry>
<title>* Improve code for the empty frozenset singleton:</title>
<updated>2005-08-01T21:39:29Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-08-01T21:39:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d794666048510deca0d4987a4c74d0fca85be411'/>
<id>urn:sha1:d794666048510deca0d4987a4c74d0fca85be411</id>
<content type='text'>
  - Handle both frozenset() and frozenset([]).
  - Do not use singleton for frozenset subclasses.
  - Finalize the singleton.
  - Add test cases.
* Factor-out set_update_internal() from set_update().  Simplifies the
  code for several internal callers.
* Factor constant expressions out of loop in set_merge_internal().
* Minor comment touch-ups.
</content>
</entry>
<entry>
<title>Add test for hash commutativity.</title>
<updated>2005-07-05T05:34:43Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-07-05T05:34:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=82cb9a235de45074d578d46bbf6680e726b13efd'/>
<id>urn:sha1:82cb9a235de45074d578d46bbf6680e726b13efd</id>
<content type='text'>
</content>
</entry>
</feed>
