<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_weakref.py, branch 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=2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_weakref.py?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-02-04T23:13:43Z</updated>
<entry>
<title>Allocating a new weakref object can cause existing weakref objects for</title>
<updated>2004-02-04T23:13:43Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2004-02-04T23:13:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=74788b6af49011be30c95ad2e7ae98ca95138bde'/>
<id>urn:sha1:74788b6af49011be30c95ad2e7ae98ca95138bde</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>- add tests that exercise fixes for the PyWeakref_NewRef() and</title>
<updated>2004-02-03T20:18:20Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2004-02-03T20:18:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=22714ffcb4d42b28df03a711a79e6a8880cd9444'/>
<id>urn:sha1:22714ffcb4d42b28df03a711a79e6a8880cd9444</id>
<content type='text'>
  PyWeakref_NewProxy() constructors from the C API
- elaborate the getweakrefcount() and getweakrefs() tests slightly,
  including additional checks pulled from the trunk
</content>
</entry>
<entry>
<title>SF bug 839548:  Bug in type's GC handling causes segfaults.</title>
<updated>2003-11-20T22:13:51Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-11-20T22:13:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ca6919c1805d20533d2be8e68e2849e15aff7bf7'/>
<id>urn:sha1:ca6919c1805d20533d2be8e68e2849e15aff7bf7</id>
<content type='text'>
Also SF patch 843455.

This is a critical bugfix, backported from 2.4 development.
I don't intend to backport beyond 2.3 maint.  The bugs this fixes
have been there since weakrefs were introduced.
</content>
</entry>
<entry>
<title>subtype_dealloc():  A more complete fix for critical bug 840829 +</title>
<updated>2003-11-13T22:48:42Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-11-13T22:48:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8e81b7efad82ee2d9f4ad84d5e8ce51a0abb9fa2'/>
<id>urn:sha1:8e81b7efad82ee2d9f4ad84d5e8ce51a0abb9fa2</id>
<content type='text'>
expanded the test case with a piece that needs the more-complete fix.

I don't intend to backport this beyond 2.3 maint.  It's a critical
bugfix, and should be backported to 2.2, 2.1, ..., if more releases in
those lines get made.
</content>
</entry>
<entry>
<title>Backport of fix for SF bug 840829, memory corruption in some cases of</title>
<updated>2003-11-13T01:17:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-11-13T01:17:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=695461f2004a9a74892e347e5bdcf18f84f37568'/>
<id>urn:sha1:695461f2004a9a74892e347e5bdcf18f84f37568</id>
<content type='text'>
weakref callbacks.

This is a critical bugfix.  It's already been fixed on the trunk (2.4
development).  I don't intend to backport it to the 22 line, but if a
2.2.4 ever gets released, this should be in it.
</content>
</entry>
<entry>
<title>stylistic nits:</title>
<updated>2003-07-14T21:37:17Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2003-07-14T21:37:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f425b1ec420b95ce4d6bb6dc35472ad9652110dc'/>
<id>urn:sha1:f425b1ec420b95ce4d6bb6dc35472ad9652110dc</id>
<content type='text'>
- wrap some long lines
- shorten others
- fix indentation
</content>
</entry>
<entry>
<title>Fix SF 762891:  "del p[key]" on proxy object raises SystemError()</title>
<updated>2003-06-30T04:18:48Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-06-30T04:18:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d693a81595ae3c617f5dd20f9a8bf8b7f130683b'/>
<id>urn:sha1:d693a81595ae3c617f5dd20f9a8bf8b7f130683b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fleshed out WeakKeyDictionary.__delitem__ NEWS to cover issues raised on</title>
<updated>2003-05-25T17:44:31Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-25T17:44:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=50d8b8b6ae320d08acc07601cca58cd52299ac76'/>
<id>urn:sha1:50d8b8b6ae320d08acc07601cca58cd52299ac76</id>
<content type='text'>
Python-Dev.  Fixed typos in test comments.  Added some trivial new test
guts to show the parallelism (now) among __delitem__, __setitem__ and
__getitem__ wrt error conditions.

Still a bugfix candidate for 2.2.3 final, but waiting for Fred to get a
chance to chime in.
</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>Used sets.Set() to compare unordered sequences.</title>
<updated>2003-05-02T09:06:28Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-05-02T09:06:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=91bbd9a7b9735cba07b06400a7c467aab6facfde'/>
<id>urn:sha1:91bbd9a7b9735cba07b06400a7c467aab6facfde</id>
<content type='text'>
Improves clarity and brevity.
</content>
</entry>
</feed>
