<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/weakref.py, branch v2.3.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=v2.3.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/weakref.py?h=v2.3.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-05-25T01:45:11Z</updated>
<entry>
<title>SF 742860: WeakKeyDictionary __delitem__ uses iterkeys</title>
<updated>2003-05-25T01:45:11Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-25T01:45:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=886128f4f8b30b7e3623418eab063a3a8dd3495c'/>
<id>urn:sha1:886128f4f8b30b7e3623418eab063a3a8dd3495c</id>
<content type='text'>
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.

Bugfix candidate for 2.2.3 too, if someone else agrees with this patch.
</content>
</entry>
<entry>
<title>SF patch #667730: More DictMixin</title>
<updated>2003-03-09T07:05:43Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-03-09T07:05:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2c2d322884ee72077a256ec3cd0aa9ce3580eedc'/>
<id>urn:sha1:2c2d322884ee72077a256ec3cd0aa9ce3580eedc</id>
<content type='text'>
* Adds missing pop() methods to weakref.py
* Expands test suite to broaden coverage of objects with
  a mapping interface.

Contributed by Sebastien Keim.
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2002-07-16T21:35:23Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-07-16T21:35:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c411dbaeee29dba87d5432a92fe76ea65d8e25f0'/>
<id>urn:sha1:c411dbaeee29dba87d5432a92fe76ea65d8e25f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF patch 564549 (Erik Andersén).</title>
<updated>2002-06-10T20:00:52Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-06-10T20:00:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=009afb7c90882ee83e196b62b1555067e14fd950'/>
<id>urn:sha1:009afb7c90882ee83e196b62b1555067e14fd950</id>
<content type='text'>
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>SF 563203. Replaced 'has_key()' with 'in'.</title>
<updated>2002-06-01T14:18:47Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-06-01T14:18:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=54f0222547b1e92cd018ef132307a6f793dc9505'/>
<id>urn:sha1:54f0222547b1e92cd018ef132307a6f793dc9505</id>
<content type='text'>
</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>
</feed>
