<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/weakref.py, branch v2.4b2</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.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/weakref.py?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-08-31T11:38:12Z</updated>
<entry>
<title>Use multi-line import</title>
<updated>2004-08-31T11:38:12Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2004-08-31T11:38:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=33ad28b68dd6caadc1e6cb8f917665d6270e7b25'/>
<id>urn:sha1:33ad28b68dd6caadc1e6cb8f917665d6270e7b25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #1012315:  weakref.WeakValueDictionary should override .has_key()</title>
<updated>2004-08-19T21:32:06Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-08-19T21:32:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=61146790992e0a00b76a6bf6ecc9e53289a1ecd7'/>
<id>urn:sha1:61146790992e0a00b76a6bf6ecc9e53289a1ecd7</id>
<content type='text'>
* Check the found object for a None value during a contains/has_key
  lookup.  Perhaps it will help the OP who is likely suffering from an
  occassional GC or threading object deletion after self.data is checked.

* Complete the previous patch by removing the unnecessary indirection
  for weak dict iterators.  Makes the code cleaner and more readable.
</content>
</entry>
<entry>
<title>Convert weak iterators to generator form.</title>
<updated>2004-08-13T07:12:45Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-08-13T07:12:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cc0def18685bab5b75e62d3c1780aa921b5f3396'/>
<id>urn:sha1:cc0def18685bab5b75e62d3c1780aa921b5f3396</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make weak references subclassable:</title>
<updated>2004-07-02T18:57:45Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2004-07-02T18:57:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a4dd390bf653128de8bc2e99da64967c8cdf86e'/>
<id>urn:sha1:0a4dd390bf653128de8bc2e99da64967c8cdf86e</id>
<content type='text'>
- weakref.ref and weakref.ReferenceType will become aliases for each
  other

- weakref.ref will be a modern, new-style class with proper __new__
  and __init__ methods

- weakref.WeakValueDictionary will have a lighter memory footprint,
  using a new weakref.ref subclass to associate the key with the
  value, allowing us to have only a single object of overhead for each
  dictionary entry (currently, there are 3 objects of overhead per
  entry: a weakref to the value, a weakref to the dictionary, and a
  function object used as a weakref callback; the weakref to the
  dictionary could be avoided without this change)

- a new macro, PyWeakref_CheckRefExact(), will be added

- PyWeakref_CheckRef() will check for subclasses of weakref.ref

This closes SF patch #983019.
</content>
</entry>
<entry>
<title>The default argument in dict.setdefault() defaults to None.</title>
<updated>2004-05-27T18:16:25Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2004-05-27T18:16:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=80ce6dd5642025f5cdf0ba5556f08df0803f5636'/>
<id>urn:sha1:80ce6dd5642025f5cdf0ba5556f08df0803f5636</id>
<content type='text'>
Add this default to weakref.WeakValueDictionary.setdefault()
and weakref.WeakKeyDictionary.setdefault() too.
</content>
</entry>
<entry>
<title>SF #904720:  dict.update should take a 2-tuple sequence like dict.__init_</title>
<updated>2004-03-04T08:25:44Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-03-04T08:25:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=31017aed36a5c5b0e4b16ca58bea09c9ce360134'/>
<id>urn:sha1:31017aed36a5c5b0e4b16ca58bea09c9ce360134</id>
<content type='text'>
(Championed by Bob Ippolito.)

The update() method for mappings now accepts all the same argument forms
as the dict() constructor.  This includes item lists and/or keyword
arguments.
</content>
</entry>
<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>
</feed>
