<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/funcobject.c, branch v2.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=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/funcobject.c?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-03-18T03:05:36Z</updated>
<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>
<entry>
<title>Add optional docstrings to member descriptors.  For backwards</title>
<updated>2001-09-20T20:46:19Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-20T20:46:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f7993765ac0989b5d13084240797913627a31d8'/>
<id>urn:sha1:6f7993765ac0989b5d13084240797913627a31d8</id>
<content type='text'>
compatibility, this required all places where an array of "struct
memberlist" structures was declared that is referenced from a type's
tp_members slot to change the type of the structure to PyMemberDef;
"struct memberlist" is now only used by old code that still calls
PyMember_Get/Set.  The code in PyObject_GenericGetAttr/SetAttr now
calls the new APIs PyMember_GetOne/SetOne, which take a PyMemberDef
argument.

As examples, I added actual docstrings to the attributes of a few
types: file, complex, instance method, super, and xxsubtype.spamlist.

Also converted the symtable to new style getattr.
</content>
</entry>
<entry>
<title>Rewrite function attributes to use the generic routines properly.</title>
<updated>2001-09-17T23:46:56Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-17T23:46:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d9d1d4ac6fda7f4c898b55194be37b03b89450e9'/>
<id>urn:sha1:d9d1d4ac6fda7f4c898b55194be37b03b89450e9</id>
<content type='text'>
This uses the new "restricted" feature of structmember, and getset
descriptors for some of the type checks.
</content>
</entry>
<entry>
<title>Use new GC API.</title>
<updated>2001-08-29T23:54:21Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2001-08-29T23:54:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e83c00efd06dc8380d481f6c5f92d8c274ce6bd2'/>
<id>urn:sha1:e83c00efd06dc8380d481f6c5f92d8c274ce6bd2</id>
<content type='text'>
</content>
</entry>
</feed>
