<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/inspect.py, 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/Lib/inspect.py?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/inspect.py?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-06-27T18:16:21Z</updated>
<entry>
<title>Fix for SF bug 620190: getargspec() doesn't understand methods.</title>
<updated>2003-06-27T18:16:21Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-06-27T18:16:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=78347b509f7c503432762bdbc0cef02041419bcf'/>
<id>urn:sha1:78347b509f7c503432762bdbc0cef02041419bcf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Backport 1.40 and 1.41 so that inspect isn't fooled by single line</title>
<updated>2003-01-19T14:16:19Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-01-19T14:16:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=28f35a2afa71b63ca5a904a608621cfc9cc2c3f9'/>
<id>urn:sha1:28f35a2afa71b63ca5a904a608621cfc9cc2c3f9</id>
<content type='text'>
definitions, pass statements, and lambdas.
</content>
</entry>
<entry>
<title>SF patch 530070: pydoc regression, from Martin and Guido.</title>
<updated>2002-03-17T18:57:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-03-17T18:57:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4d761f2443e3e60d386ff956c20cbc69b96d4511'/>
<id>urn:sha1:4d761f2443e3e60d386ff956c20cbc69b96d4511</id>
<content type='text'>
Change the way __doc__ is handled, to avoid blowing up on non-string
__doc__ values.
</content>
</entry>
<entry>
<title>SF #515015, raise exception if code not found in findsource()</title>
<updated>2002-03-13T03:19:18Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-03-13T03:19:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5e92c5fccf397c7fd9ff3e2ca04fbff20814a72b'/>
<id>urn:sha1:5e92c5fccf397c7fd9ff3e2ca04fbff20814a72b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Get rid of __defined__ and tp_defined -- there's no need to</title>
<updated>2001-10-15T22:03:32Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-15T22:03:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=687ae00460da9cac04eb1ba8f6f5ab4db25fbfc2'/>
<id>urn:sha1:687ae00460da9cac04eb1ba8f6f5ab4db25fbfc2</id>
<content type='text'>
distinguish __dict__ and __defined__ any more.  In the C structure,
tp_cache takes its place -- but this hasn't been implemented yet.
</content>
</entry>
<entry>
<title>New function classify_class_attrs().  As a number of SF bug reports</title>
<updated>2001-09-23T02:00:29Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-23T02:00:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=13b49d3374cca4eaffee5fa756192a234714c8ff'/>
<id>urn:sha1:13b49d3374cca4eaffee5fa756192a234714c8ff</id>
<content type='text'>
point out, pydoc doesn't tell you where class attributes were defined,
gets several new 2.2 features wrong, and isn't aware of some new features
checked in on Thursday &lt;wink&gt;.  pydoc is hampered in part because
inspect.py has the same limitations.  Alas, I can't think of a way to
fix this within the current architecture of inspect/pydoc:  it's simply
not possible in 2.2 to figure out everything needed just from examining
the object you get back from class.attr.  You also need the class
context, and the method resolution order, and tests against various things
that simply didn't exist before.  OTOH, knowledge of how to do that is
getting quite complex, so doesn't belong in pydoc.

classify_class_attrs takes a different approach, analyzing all
the class attrs "at once", and returning the most interesting stuff for
each, all in one gulp.  pydoc needs to be reworked to use this for
classes (instead of the current "filter dir(class) umpteen times against
assorted predicates" approach).
</content>
</entry>
<entry>
<title>Add a function to compute a class's method resolution order.  This is</title>
<updated>2001-09-22T06:10:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-22T06:10:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e0b2d7ac9aea548d0bee1cdabd5d7b1254a6569d'/>
<id>urn:sha1:e0b2d7ac9aea548d0bee1cdabd5d7b1254a6569d</id>
<content type='text'>
easy for 2.2 new-style classes, but trickier for classic classes, and
different approaches are needed "depending".  The function will allow
later code to treat all flavors of classes uniformly.
</content>
</entry>
<entry>
<title>Ensure that isfunction(obj) and (the new) ismethoddescriptor(obj) never</title>
<updated>2001-09-20T05:47:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-20T05:47:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f1d90b965e50c17d09535c1f740942dde3d8a294'/>
<id>urn:sha1:f1d90b965e50c17d09535c1f740942dde3d8a294</id>
<content type='text'>
both return true.  This restores pydoc's ability to deduce argument lists
for functions and methods coded in Python.
</content>
</entry>
<entry>
<title>After much thrashing, I believe this is a truly minimal patch to teach</title>
<updated>2001-09-20T05:13:38Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-20T05:13:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=536d2262f730dfd0d48ed541d834dd01f7d95562'/>
<id>urn:sha1:536d2262f730dfd0d48ed541d834dd01f7d95562</id>
<content type='text'>
pydoc how to do something sensible with 2.2 descriptors.  To see the
difference, browse __builtin__ via pydoc before and after the patch.
</content>
</entry>
<entry>
<title>In a world with a growing number of subclassable types, replace</title>
<updated>2001-09-16T08:40:16Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-16T08:40:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=28bc59f1169298470f7c80ed54810a330d68b3c8'/>
<id>urn:sha1:28bc59f1169298470f7c80ed54810a330d68b3c8</id>
<content type='text'>
    type(x) is T
tests with
    isinstance(x, T)
Also got rid of a future-generators import, left over from code that
wasn't intended to get checked in.
</content>
</entry>
</feed>
