<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/classobject.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/classobject.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/classobject.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-04-08T19:02:34Z</updated>
<entry>
<title>Added private API function _PyInstance_Lookup().  This is part of</title>
<updated>2003-04-08T19:02:34Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-04-08T19:02:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=82550d5b8654cee55357cef303038effa4e0448a'/>
<id>urn:sha1:82550d5b8654cee55357cef303038effa4e0448a</id>
<content type='text'>
backporting fixes so that garbage collection doesn't have to trigger
execution of arbitrary Python code just to figure out whether
an object has a __del__ method.
</content>
</entry>
<entry>
<title>backport:</title>
<updated>2003-02-02T19:37:32Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-02-02T19:37:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=949954706b15bc10b00857c77416d4ccf0759118'/>
<id>urn:sha1:949954706b15bc10b00857c77416d4ccf0759118</id>
<content type='text'>
revision 2.164
date: 2002/10/29 18:36:40;  author: gvanrossum;  state: Exp;  lines: +12 -13
Since properties are supported here, is possible that
instance_getattr2() raises an exception.  Fix all code that made this
assumption.
</content>
</entry>
<entry>
<title>Fix (real! :-) memory leaks in half_cmp and half_binop.</title>
<updated>2002-10-18T14:06:02Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-10-18T14:06:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cadef78dbb22518838897aa9496dc5d4a8c8243b'/>
<id>urn:sha1:cadef78dbb22518838897aa9496dc5d4a8c8243b</id>
<content type='text'>
Perhaps found by NealN and valgrind.  Will forward port.
</content>
</entry>
<entry>
<title>Backport:</title>
<updated>2002-06-13T21:36:35Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-06-13T21:36:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a9d29fed5482cc5a48c132db0be38ef7797c436a'/>
<id>urn:sha1:a9d29fed5482cc5a48c132db0be38ef7797c436a</id>
<content type='text'>
Fix for SF bug 532646.  This is a little simpler than what Neal
suggested there, based upon a better analysis (__getattr__ is a red
herring).
[This might be a 2.1 bugfix candidate we well, if people care]
</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>Fix for SF bug #472940: can't getattr() attribute shown by dir()</title>
<updated>2001-10-22T02:00:09Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-22T02:00:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=56ff387a7e625a692851e2e5ffdea096b72831f7'/>
<id>urn:sha1:56ff387a7e625a692851e2e5ffdea096b72831f7</id>
<content type='text'>
There really isn't a good reason for instance method objects to have
their own __dict__, __doc__ and __name__ properties that just delegate
the request to the function (callable); the default attribute behavior
already does this.

The test suite had to be fixed because the error changes from
TypeError to AttributeError.
</content>
</entry>
<entry>
<title>Protect references to tp_descr_get and tp_dict with the appropriate test:</title>
<updated>2001-10-17T20:26:38Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-17T20:26:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=915f0eb212f62f10611180ed2d7874dae5bc66e3'/>
<id>urn:sha1:915f0eb212f62f10611180ed2d7874dae5bc66e3</id>
<content type='text'>
PyType_HasFeature(t, Py_TPFLAGS_HAVE_CLASS).
</content>
</entry>
<entry>
<title>SF bug [#466173] unpack TypeError unclear</title>
<updated>2001-09-30T05:58:42Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-30T05:58:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8b13b3ede270bf6f7bf3427675e335ab0bd0f75b'/>
<id>urn:sha1:8b13b3ede270bf6f7bf3427675e335ab0bd0f75b</id>
<content type='text'>
Replaced 3 instances of "iter() of non-sequence" with
"iteration over non-sequence".
Restored "unpack non-sequence" for stuff like "a, b = 1".
</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>
</feed>
