<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/inspect_fodder2.py, branch v2.5a2</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/test/inspect_fodder2.py?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/inspect_fodder2.py?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2005-09-25T11:45:45Z</updated>
<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>Whitespace normalization.</title>
<updated>2005-01-07T16:01:32Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2005-01-07T16:01:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5a9fb3c415d1204c7f2c12243ba5d46f5964dcbd'/>
<id>urn:sha1:5a9fb3c415d1204c7f2c12243ba5d46f5964dcbd</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>Patch #736962: port test_inspect to unittest. As part of this, move out</title>
<updated>2004-12-12T16:20:22Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2004-12-12T16:20:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cb9015dc088676e7fa6434081d105068cded7743'/>
<id>urn:sha1:cb9015dc088676e7fa6434081d105068cded7743</id>
<content type='text'>
the fodder modules to separate files to get rid of the imp.load_source()
trickery.
</content>
</entry>
</feed>
