<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/weakref.py, branch 2.2</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/weakref.py?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/weakref.py?h=2.2'/>
<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:01Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-08-23T16:29:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4437f2c301307a4b1f6de9d172069601006e6c3a'/>
<id>urn:sha1:4437f2c301307a4b1f6de9d172069601006e6c3a</id>
<content type='text'>
    revision 1.17 of 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>WeakKeyDictionary.has_key():  If the key being tested is not weakly</title>
<updated>2001-11-06T16:36:53Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-11-06T16:36:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3bae7ddf8e63889b185235f85a6695bc05d59059'/>
<id>urn:sha1:3bae7ddf8e63889b185235f85a6695bc05d59059</id>
<content type='text'>
referencable (weakref.ref() raises TypeError), return 0 instead of
propogating the TypeError.
This closes SF bug #478536; bugfix candidate.
</content>
</entry>
<entry>
<title>ReferenceError is now built-in, so pick it up from the right place.</title>
<updated>2001-10-05T21:54:09Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-05T21:54:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e029242d5cfb8a3879bdc7324db4449e6a8451cf'/>
<id>urn:sha1:e029242d5cfb8a3879bdc7324db4449e6a8451cf</id>
<content type='text'>
It still needs to be here to preserve the API.
</content>
</entry>
<entry>
<title>Clean up circular references in the Weak*Dictionary classes; this avoids</title>
<updated>2001-09-28T19:01:26Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-09-28T19:01:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=746fe0fae5442403c64be34b87609601166e97c8'/>
<id>urn:sha1:746fe0fae5442403c64be34b87609601166e97c8</id>
<content type='text'>
depending on the cycle detector code in the library implementation.
This is a *slightly* different patch than SF patch #417795, but takes
the same approach.  (This version avoids calling the __len__() method of
the dict in the remove() functions.)
This closes SF patch #417795.
</content>
</entry>
<entry>
<title>Add __delitem__() support for WeakKeyDictionary.</title>
<updated>2001-09-06T14:51:01Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-09-06T14:51:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b663a2ccbdd9bbd9a13f0cea743af709c53ec0c1'/>
<id>urn:sha1:b663a2ccbdd9bbd9a13f0cea743af709c53ec0c1</id>
<content type='text'>
This closes 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>
<entry>
<title>Added iterator support to the Weak*Dictionary classes.</title>
<updated>2001-05-02T05:43:09Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-05-02T05:43:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=101209d44ce063cd04fd6793d94991f8e6688428'/>
<id>urn:sha1:101209d44ce063cd04fd6793d94991f8e6688428</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Weak*Dictionary:  Added docstrings to the classes.</title>
<updated>2001-04-19T16:26:06Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-04-19T16:26:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bd7f818c508248e12f88e51198cb5e9b861dacbf'/>
<id>urn:sha1:bd7f818c508248e12f88e51198cb5e9b861dacbf</id>
<content type='text'>
Weak*Dictionary.update():  No longer create a temporary list to hold the
    things that will be stuffed into the underlying dictionary.  This had
    been done so that if any of the objects used as the weakly-held value
    was not weakly-referencable, no updates would take place (TypeError
    would be raised).  With this change, TypeError will still be raised
    but a partial update could occur.  This is more like other .update()
    implementations.

Thoughout, use of the name "ref" as a local variable has been removed.  The
original use of the name occurred when the function to create a weak
reference was called "new"; the overloaded use of the name could be
confusing for someone reading the code.  "ref" used as a variable name
has been replaced with "wr" (for 'weak reference').
</content>
</entry>
<entry>
<title>Weak*Dictionary.update():  Fix calls to [].append() to only have one</title>
<updated>2001-04-16T17:34:48Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-04-16T17:34:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1d9e4b7de3d15007d5b9e7ac4b38f5e158d3c840'/>
<id>urn:sha1:1d9e4b7de3d15007d5b9e7ac4b38f5e158d3c840</id>
<content type='text'>
    parameter.

Weak*Dictionary.get():  Make the second parameter optional.

WeakKeyDictionary.has_key(), .keys():  Make these actually work!
</content>
</entry>
</feed>
