<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython.git/Lib/inspect.py, branch v2.5b2</title>
<subtitle>
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/'/>
<entry>
<title>Fix SF#1516184 and add a test to prevent regression.</title>
<updated>2006-07-10T19:03:29+00:00</updated>
<author>
<name>Phillip J. Eby</name>
<email>pje@telecommunity.com</email>
</author>
<published>2006-07-10T19:03:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=c1e1543bcb67863c5a26b1b4701d4f0edcb5f1c0'/>
<id>c1e1543bcb67863c5a26b1b4701d4f0edcb5f1c0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix another problem in inspect: if the module for an object cannot be found, don't try to give its __dict__ to linecache.</title>
<updated>2006-04-30T17:42:26+00:00</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2006-04-30T17:42:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=ebe1b47738afd5613c23f9da9532bb9df2f4c024'/>
<id>ebe1b47738afd5613c23f9da9532bb9df2f4c024</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix infinite regress when inspecting &lt;string&gt; or &lt;stdin&gt; frames.</title>
<updated>2006-04-30T15:59:26+00:00</updated>
<author>
<name>Phillip J. Eby</name>
<email>pje@telecommunity.com</email>
</author>
<published>2006-04-30T15:59:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=8d38dcc7bbcb59a7b3ffb19be93cf21d4540a625'/>
<id>8d38dcc7bbcb59a7b3ffb19be93cf21d4540a625</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add whitespace after comma</title>
<updated>2006-04-11T07:17:08+00:00</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-04-11T07:17:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=fd7d462c744dfed416943eb09e5f0838b3738e71'/>
<id>fd7d462c744dfed416943eb09e5f0838b3738e71</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Updated the warnings, linecache, inspect, traceback, site, and doctest modules</title>
<updated>2006-04-11T01:07:43+00:00</updated>
<author>
<name>Phillip J. Eby</name>
<email>pje@telecommunity.com</email>
</author>
<published>2006-04-11T01:07:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=0c09f4aa9d8fe61ede5dde59beb31a451634a361'/>
<id>0c09f4aa9d8fe61ede5dde59beb31a451634a361</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to work correctly with modules imported from zipfiles or via other PEP 302
__loader__ objects.  Tests and doc updates are included.
</pre>
</div>
</content>
</entry>
<entry>
<title>some more fixes and tests for inspect.getsource(), triggered by crashes</title>
<updated>2005-09-25T11:45:45+00:00</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2005-09-25T11:45:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=3422bb0b31439cc64bbaff09c5d525d5376b27a3'/>
<id>3422bb0b31439cc64bbaff09c5d525d5376b27a3</id>
<content type='text'>
from the PyPy project as well as the SF bug #1295909.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
from the PyPy project as well as the SF bug #1295909.
</pre>
</div>
</content>
</entry>
<entry>
<title>Patch #1159931/bug #1143895: inspect.getsource failed when functions,</title>
<updated>2005-03-12T16:37:11+00:00</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2005-03-12T16:37:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=a7a5a20fca4af6b548dc7d9f802daa5f81d5b72e'/>
<id>a7a5a20fca4af6b548dc7d9f802daa5f81d5b72e</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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!
</pre>
</div>
</content>
</entry>
<entry>
<title>Apply itemgetter() instead of lambda.</title>
<updated>2005-03-11T06:46:45+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-03-11T06:46:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=e058b5e9d2c99ff7d234253a859b78a8ba390aad'/>
<id>e058b5e9d2c99ff7d234253a859b78a8ba390aad</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace list of constants with tuples of constants.</title>
<updated>2005-02-06T06:57:08+00:00</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-02-06T06:57:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=29fae41d6b2f7cf5392bc0c30c53a4a6ff7baeda'/>
<id>29fae41d6b2f7cf5392bc0c30c53a4a6ff7baeda</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Patch #1011890: fix inspect.getsource breaking with line-continuation &amp;</title>
<updated>2004-12-12T16:46:28+00:00</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2004-12-12T16:46:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=adc33fccfea1ae70295a14ef41c2bc2abbffd986'/>
<id>adc33fccfea1ae70295a14ef41c2bc2abbffd986</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
