<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_weakref.py, branch v2.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_weakref.py?h=v2.2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_weakref.py?h=v2.2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-05-28T23:03:30Z</updated>
<entry>
<title>The backport gets Fred's seal of approval:</title>
<updated>2003-05-28T23:03:30Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2003-05-28T23:03:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=39a8fddb1507593ebc8449ddcecd30ddaca69931'/>
<id>urn:sha1:39a8fddb1507593ebc8449ddcecd30ddaca69931</id>
<content type='text'>
    SF 742860: WeakKeyDictionary __delitem__ uses iterkeys

    Someone review this, please!  Final releases are getting close, Fred
    (the weakref guy) won't be around until Tuesday, and the pre-patch
    code can indeed raise spurious RuntimeErrors in the presence of
    threads or mutating comparison functions.

    See the bug report for my confusions:  I can't see any reason for why
    __delitem__ iterated over the keys.  The new one-liner implementation
    is much faster, can't raise RuntimeError, and should be better-behaved
    in all respects wrt threads.

    New tests test_weak_keyed_bad_delitem and
    test_weak_keyed_cascading_deletes fail before this patch.

Backported the tests and the patch.
</content>
</entry>
<entry>
<title>backport gvanrossum's checkin of</title>
<updated>2002-08-23T16:29:27Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-08-23T16:29:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f2a62c37a66fe668031637fe619d0f94a941eb3f'/>
<id>urn:sha1:f2a62c37a66fe668031637fe619d0f94a941eb3f</id>
<content type='text'>
    revision 1.19 of test_weakref.py

SF patch 564549 (Erik Andersén).

The WeakKeyDictionary constructor didn't work when a dict arg was
given.  Fixed by moving a line.  Also adding a unit test.

Bugfix candidate.
</content>
</entry>
<entry>
<title>Add some additional tests that check more proxy behaviors.</title>
<updated>2001-12-19T16:54:23Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-12-19T16:54:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5935ff07beb0ed2b37dc7a85f04861122eaa5a9a'/>
<id>urn:sha1:5935ff07beb0ed2b37dc7a85f04861122eaa5a9a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Regression test for SF bug #478534 -- exceptions could "leak" into a weakref</title>
<updated>2001-12-10T23:46:02Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-12-10T23:46:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2a64f4693ddcd552c4c6e709eaaba7cf829464d8'/>
<id>urn:sha1:2a64f4693ddcd552c4c6e709eaaba7cf829464d8</id>
<content type='text'>
callback.
</content>
</entry>
<entry>
<title>Add a regression test for SF bug #478536:  If a value cannot be weakly</title>
<updated>2001-11-06T16:38:34Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-11-06T16:38:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=752eda459ae8f61b08c898c5a857b2151856881b'/>
<id>urn:sha1:752eda459ae8f61b08c898c5a857b2151856881b</id>
<content type='text'>
referenced, WeakKeyDictionary.has_key() should return 0 instead of raising
TypeError.
</content>
</entry>
<entry>
<title>Add a test for calling a weakref proxy with a dictionary of keyword args.</title>
<updated>2001-10-18T19:28:29Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-18T19:28:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3bb4d214a470c4da4af63f5a2c098cc886b9e857'/>
<id>urn:sha1:3bb4d214a470c4da4af63f5a2c098cc886b9e857</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make sure we do not core dump when using proxies with the binary slot</title>
<updated>2001-10-18T18:06:05Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-18T18:06:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=39c27f1ffbb426bc7aceb7258b6d20cb5d4ba392'/>
<id>urn:sha1:39c27f1ffbb426bc7aceb7258b6d20cb5d4ba392</id>
<content type='text'>
handlers.  This was fixed in Objects/weakrefobject.c 1.2.
</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>Added tests for key deletion for both Weak*Dictionary flavors.</title>
<updated>2001-09-06T14:52:39Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-09-06T14:52:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ccc7562315184669791c49b728580773f04f01fb'/>
<id>urn:sha1:ccc7562315184669791c49b728580773f04f01fb</id>
<content type='text'>
This covers regression on SF bug #458860.
</content>
</entry>
<entry>
<title>Make sure that WeakValueDictionary[] raises KeyError instead of TypeError</title>
<updated>2001-08-03T04:11:27Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-08-03T04:11:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4fd06e0170aa75e4873b73f733bfd3f3de19d967'/>
<id>urn:sha1:4fd06e0170aa75e4873b73f733bfd3f3de19d967</id>
<content type='text'>
for keys that are not in the dictionary.
</content>
</entry>
</feed>
