<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/weakrefobject.c, branch 2.4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/weakrefobject.c?h=2.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/weakrefobject.c?h=2.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-03-07T15:59:09Z</updated>
<entry>
<title>Backport r42894: SF #1444030 Fix several potential defects found</title>
<updated>2006-03-07T15:59:09Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2006-03-07T15:59:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=361cd4bd6c9c2d56ed154922e016c47d4bee9482'/>
<id>urn:sha1:361cd4bd6c9c2d56ed154922e016c47d4bee9482</id>
<content type='text'>
by Coverity.
</content>
</entry>
<entry>
<title>SF bug #1770766:  weakref proxy has incorrect __nonzero__ behavior.</title>
<updated>2005-03-31T04:07:55Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-03-31T04:07:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4cf27049b68a2c1dca643638f319966ba3fae4ee'/>
<id>urn:sha1:4cf27049b68a2c1dca643638f319966ba3fae4ee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF 1055820: weakref callback vs gc vs threads</title>
<updated>2004-10-30T23:09:22Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-10-30T23:09:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ead8b7ab3008bda9b6a50d6d9d02ed68dab3b0fd'/>
<id>urn:sha1:ead8b7ab3008bda9b6a50d6d9d02ed68dab3b0fd</id>
<content type='text'>
In cyclic gc, clear weakrefs to unreachable objects before allowing any
Python code (weakref callbacks or __del__ methods) to run.

This is a critical bugfix, affecting all versions of Python since weakrefs
were introduced.  I'll backport to 2.3.
</content>
</entry>
<entry>
<title>Be more careful about maintaining the invariants; it was actually</title>
<updated>2004-08-03T14:47:25Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2004-08-03T14:47:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d3265dab60c3ed12569a1ad1643d95ba8028cad'/>
<id>urn:sha1:6d3265dab60c3ed12569a1ad1643d95ba8028cad</id>
<content type='text'>
possible that the callback-less flavors of the ref or proxy could have
been added during GC, so we don't want to replace them.
</content>
</entry>
<entry>
<title>SF bug #978308, Spurious errors taking bool of dead pro</title>
<updated>2004-07-08T01:22:31Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2004-07-08T01:22:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bdcb9410c20c49928c91b065ccbd115aa450e037'/>
<id>urn:sha1:bdcb9410c20c49928c91b065ccbd115aa450e037</id>
<content type='text'>
Need to return -1 on error.

Needs backport.
</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>Allocating a new weakref object can cause existing weakref objects for</title>
<updated>2004-02-04T23:14:14Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2004-02-04T23:14:14Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bc875f5a36b744c1a7263c35befaf31208a416b1'/>
<id>urn:sha1:bc875f5a36b744c1a7263c35befaf31208a416b1</id>
<content type='text'>
the same object to be collected by the cyclic GC support if they are
only referenced by a cycle.  If the weakref being collected was one of
the weakrefs without callbacks, some local variables for the
constructor became invalid and have to be re-computed.

The test caused a segfault under a debug build without the fix applied.
</content>
</entry>
<entry>
<title>Fix bug in interpretation of the "callback" argument in the constructors for</title>
<updated>2004-02-03T19:52:56Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2004-02-03T19:52:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6a2852cd48fbe4164c6a6eec95a086e8630dde45'/>
<id>urn:sha1:6a2852cd48fbe4164c6a6eec95a086e8630dde45</id>
<content type='text'>
weakref ref and proxy objects; None was not being treated as identical to
NULL, though it was documented as equivalent.
</content>
</entry>
<entry>
<title>SF bug 839548:  Bug in type's GC handling causes segfaults.</title>
<updated>2003-11-20T21:21:46Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-11-20T21:21:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=403a2032230087943a52453deef93769f22461f8'/>
<id>urn:sha1:403a2032230087943a52453deef93769f22461f8</id>
<content type='text'>
Also SF patch 843455.

This is a critical bugfix.
I'll backport to 2.3 maint, but not beyond that.  The bugs this fixes
have been there since weakrefs were introduced.
</content>
</entry>
<entry>
<title>Remove proxy_print(), since that caused an inconsistency between</title>
<updated>2003-07-14T21:46:23Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2003-07-14T21:46:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fe89cc186cc0a0d31f63ee0f174b394f2538c5a8'/>
<id>urn:sha1:fe89cc186cc0a0d31f63ee0f174b394f2538c5a8</id>
<content type='text'>
"print repr(proxy(a))" and "proxy(a)" at an interactive prompt.
Closes SF bug #722763.
</content>
</entry>
</feed>
