<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/inspect.py, branch v2.5a2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/inspect.py?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/inspect.py?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-04-11T07:17:08Z</updated>
<entry>
<title>Add whitespace after comma</title>
<updated>2006-04-11T07:17:08Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-04-11T07:17:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b94a368ff437427897c6161f28a88866b7ee3982'/>
<id>urn:sha1:b94a368ff437427897c6161f28a88866b7ee3982</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Updated the warnings, linecache, inspect, traceback, site, and doctest modules</title>
<updated>2006-04-11T01:07:43Z</updated>
<author>
<name>Phillip J. Eby</name>
<email>pje@telecommunity.com</email>
</author>
<published>2006-04-11T01:07:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=470321108019367e3bdd96309e89d79f04784d45'/>
<id>urn:sha1:470321108019367e3bdd96309e89d79f04784d45</id>
<content type='text'>
to work correctly with modules imported from zipfiles or via other PEP 302
__loader__ objects.  Tests and doc updates are included.
</content>
</entry>
<entry>
<title>some more fixes and tests for inspect.getsource(), triggered by crashes</title>
<updated>2005-09-25T11:45:45Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2005-09-25T11:45:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd5c023af56b9a424a3965364521c50b73308379'/>
<id>urn:sha1:dd5c023af56b9a424a3965364521c50b73308379</id>
<content type='text'>
from the PyPy project as well as the SF bug #1295909.
</content>
</entry>
<entry>
<title>Patch #1159931/bug #1143895: inspect.getsource failed when functions,</title>
<updated>2005-03-12T16:37:11Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2005-03-12T16:37:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a5855d5ace1c1426e1247272c688ccc11ae02f7c'/>
<id>urn:sha1:a5855d5ace1c1426e1247272c688ccc11ae02f7c</id>
<content type='text'>
etc., had comments after the colon, and some other cases. This patch
take a simpler approach that doesn't rely on looking for a ':'. Thanks
Simon Percivall!
</content>
</entry>
<entry>
<title>Apply itemgetter() instead of lambda.</title>
<updated>2005-03-11T06:46:45Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-03-11T06:46:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a1a992c0a0003db10187696f6331b3200eb6f276'/>
<id>urn:sha1:a1a992c0a0003db10187696f6331b3200eb6f276</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace list of constants with tuples of constants.</title>
<updated>2005-02-06T06:57:08Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-02-06T06:57:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dbecd93b7203cd187c1978de1207c29d3a9a686c'/>
<id>urn:sha1:dbecd93b7203cd187c1978de1207c29d3a9a686c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Patch #1011890: fix inspect.getsource breaking with line-continuation &amp;</title>
<updated>2004-12-12T16:46:28Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2004-12-12T16:46:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1542f34c42de544cf11e400906149c6252b42ae7'/>
<id>urn:sha1:1542f34c42de544cf11e400906149c6252b42ae7</id>
<content type='text'>
more. Thanks to Simon Percivall!

The patch makes changes to inspect.py in two places:

* the pattern to match against functions at line 436 is
modified: lambdas should be matched even if not
preceded by whitespace, as long as "lambda" isn't part
of another word.

* the BlockFinder class is heavily modified. Changes are:
- checking for "def", "class" or "lambda" names
before setting self.started to True. Then checking the
same line for word characters after the colon (if the
colon is on that line). If so, and the line does not
end with a line continuation marker, raise EndOfBlock
immediately.
- adding self.passline to show that the line is to be
included and no more checking is necessary on that
line. Since a NEWLINE token is not generated when a
line continuation marker exists, this allows getsource
to continue with these functions even if the following
line would not be indented.

Also add a bunch of
'quite-unlikely-to-occur-in-real-life-but-working-anyway' tests.
</content>
</entry>
<entry>
<title>Import no longer needed.</title>
<updated>2004-09-20T18:08:31Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-20T18:08:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=61656203cdcc8698c2e485f06b929e779d51b593'/>
<id>urn:sha1:61656203cdcc8698c2e485f06b929e779d51b593</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Raymond reminded me to use DSU key</title>
<updated>2004-09-20T16:43:30Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2004-09-20T16:43:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=13dea5a42bfd65a817c884a97f06c2c2b612490e'/>
<id>urn:sha1:13dea5a42bfd65a817c884a97f06c2c2b612490e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Sort classes by fully qualified name.  In the common case where you are</title>
<updated>2004-09-20T15:40:38Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2004-09-20T15:40:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=41f89a4f3dd38d0f09be4586769a1f5b922402c8'/>
<id>urn:sha1:41f89a4f3dd38d0f09be4586769a1f5b922402c8</id>
<content type='text'>
displaying a set of classes from one module it doesn't matter, but if you
are displaying a large class tree from multiple modules it improves the
display to sort by module.name.
</content>
</entry>
</feed>
