<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/funcobject.c, 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/Objects/funcobject.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/funcobject.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-07-13T13:54:34Z</updated>
<entry>
<title>Backport of rhettinger's funcobject.c 2.63, bugfix for SF bug 753451</title>
<updated>2003-07-13T13:54:34Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2003-07-13T13:54:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a8f2996a54094507d4d99aeb5859eefc41b9f83'/>
<id>urn:sha1:0a8f2996a54094507d4d99aeb5859eefc41b9f83</id>
<content type='text'>
Check the argument of classmethod is callable. (prevents
classmethod(classmethod(func)) from bombing out.
</content>
</entry>
<entry>
<title>Backport fix for SF bug 692776.</title>
<updated>2003-05-22T18:11:20Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-05-22T18:11:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=826f68b25b8fe952c58ee71a8f954a0909218240'/>
<id>urn:sha1:826f68b25b8fe952c58ee71a8f954a0909218240</id>
<content type='text'>
Add a tp_new slot to function objects that handles the case of a
function requiring a closure.  Put the function type in the new
module, rather than having a function new.function().  Add tests.
</content>
</entry>
<entry>
<title>Backport fixes to make more types collectable.</title>
<updated>2003-05-09T18:29:21Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-05-09T18:29:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d8136b500a73eb48ba2e122c3f8e0fb858218c9e'/>
<id>urn:sha1:d8136b500a73eb48ba2e122c3f8e0fb858218c9e</id>
<content type='text'>
classmethod, staticmethod, cPickle.Pickler, cPickle.UNpickler
</content>
</entry>
<entry>
<title>Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault</title>
<updated>2002-03-18T03:05:36Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-03-18T03:05:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=09f2187704cdacc4e3f86b357d110445541e6ad7'/>
<id>urn:sha1:09f2187704cdacc4e3f86b357d110445541e6ad7</id>
<content type='text'>
The proper fix is not quite what was submitted; it's really better to
take the class of the object passed rather than calling PyMethod_New
with NULL pointer args, because that can then cause other core dumps
later.

I also added a testcase for the fix to classmethods() in test_descr.py.

I'll apply this to 2.3 too.
</content>
</entry>
<entry>
<title>Portability fix: Not every compiler implements the extension of</title>
<updated>2001-12-17T11:39:56Z</updated>
<author>
<name>Sjoerd Mullender</name>
<email>sjoerd@acm.org</email>
</author>
<published>2001-12-17T11:39:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=564980bd86017c8ab3b94f6c2be7259c87d9de05'/>
<id>urn:sha1:564980bd86017c8ab3b94f6c2be7259c87d9de05</id>
<content type='text'>
unescaped newlines in strings.
</content>
</entry>
<entry>
<title>SF patch #493452: docstrings for staticmethod/classmethod (Skip</title>
<updated>2001-12-17T02:53:53Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-17T02:53:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=33c1a8893de95564c8604c259390a3eabf274a0b'/>
<id>urn:sha1:33c1a8893de95564c8604c259390a3eabf274a0b</id>
<content type='text'>
Montanaro)

(With minor adjustments.)
</content>
</entry>
<entry>
<title>function_call(): Remove a bogus (and I mean *really* bogus) call to</title>
<updated>2001-12-03T19:22:38Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-03T19:22:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=be5234610af367f00c23c01e44ea165fbfc64b98'/>
<id>urn:sha1:be5234610af367f00c23c01e44ea165fbfc64b98</id>
<content type='text'>
Py_DECREF(arg) after the PyErr_NoMemory() call.  (Armin Rigo, SF bug
#488477.)
</content>
</entry>
<entry>
<title>Be smarter about clearing the weakref lists for instances, instance methods,</title>
<updated>2001-10-26T17:56:51Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-10-26T17:56:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c916f5a390b0ca559de54a15d4014e18792674ea'/>
<id>urn:sha1:c916f5a390b0ca559de54a15d4014e18792674ea</id>
<content type='text'>
and functions: we only need to call PyObject_ClearWeakRefs() if the weakref
list is non-NULL.  Since these objects are common but weakrefs are still
unusual, saving the call at deallocation time makes a lot of sense.
</content>
</entry>
<entry>
<title>Enable GC for new-style instances.  This touches lots of files, since</title>
<updated>2001-10-05T20:51:39Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-05T20:51:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9475a2310d9cdec4b4c36dee8bf30c72605ae928'/>
<id>urn:sha1:9475a2310d9cdec4b4c36dee8bf30c72605ae928</id>
<content type='text'>
many types were subclassable but had a xxx_dealloc function that
called PyObject_DEL(self) directly instead of deferring to
self-&gt;ob_type-&gt;tp_free(self).  It is permissible to set tp_free in the
type object directly to _PyObject_Del, for non-GC types, or to
_PyObject_GC_Del, for GC types.  Still, PyObject_DEL was a tad faster,
so I'm fearing that our pystone rating is going down again.  I'm not
sure if doing something like

void xxx_dealloc(PyObject *self)
{
	if (PyXxxCheckExact(self))
		PyObject_DEL(self);
	else
		self-&gt;ob_type-&gt;tp_free(self);
}

is any faster than always calling the else branch, so I haven't
attempted that -- however those types whose own dealloc is fancier
(int, float, unicode) do use this pattern.
</content>
</entry>
<entry>
<title>Add optional docstrings to getset descriptors.  Fortunately, there's</title>
<updated>2001-09-20T21:45:26Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-20T21:45:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32d34c809f5971f79462dcb7d0f536d46e624acc'/>
<id>urn:sha1:32d34c809f5971f79462dcb7d0f536d46e624acc</id>
<content type='text'>
no backwards compatibility to worry about, so I just pushed the
'closure' struct member to the back -- it's never used in the current
code base (I may eliminate it, but that's more work because the getter
and setter signatures would have to change.)

As examples, I added actual docstrings to the getset attributes of a
few types: file.closed, xxsubtype.spamdict.state.
</content>
</entry>
</feed>
