<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/inspect.py, branch v2.4.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=v2.4.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/inspect.py?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2005-03-12T16:38:39Z</updated>
<entry>
<title>Backport of patch #1159931/bug #1143895: inspect.getsource failed when</title>
<updated>2005-03-12T16:38:39Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2005-03-12T16:38:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d86254bc2514ec4fb9e62126c02ef2f6458db67d'/>
<id>urn:sha1:d86254bc2514ec4fb9e62126c02ef2f6458db67d</id>
<content type='text'>
functions, etc., had comments after the colon, and some other cases.
This patch take a simpler approach that doesn't rely on looking for a
':'. Test cases are not backported, as test_inspect.py has been
rewritten using unittest on the trunk.

Thanks Simon Percivall!
</content>
</entry>
<entry>
<title>Patch #1011890: fix inspect.getsource breaking with line-continuation &amp;</title>
<updated>2004-12-31T09:45:37Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2004-12-31T09:45:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=01b53e1f068d20ce3a9dace58f45be82b7eb85c6'/>
<id>urn:sha1:01b53e1f068d20ce3a9dace58f45be82b7eb85c6</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.

Don't backport the tests, as these have been too heavily modified on the trunk.
</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>
<entry>
<title>Use __module__ attribute when available instead of using isclass() predicate</title>
<updated>2004-09-11T15:53:22Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2004-09-11T15:53:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9324526a7658c5450eba24b48065d87d5db5ab1f'/>
<id>urn:sha1:9324526a7658c5450eba24b48065d87d5db5ab1f</id>
<content type='text'>
(functions and methods have grown the __module__ attribute too). See bug #570300.
</content>
</entry>
<entry>
<title>Patch #1006219: let inspect.getsource show '@' decorators and add tests for</title>
<updated>2004-08-18T12:40:31Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2004-08-18T12:40:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c473c99d16b43544fffcc8a33fbc61c95061b088'/>
<id>urn:sha1:c473c99d16b43544fffcc8a33fbc61c95061b088</id>
<content type='text'>
this (which are rather ugly, but it'll have to do until test_inspect gets a
major overhaul and a conversion to unittest). Thanks Simon Percivall!
</content>
</entry>
<entry>
<title>- Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).</title>
<updated>2004-08-15T17:04:33Z</updated>
<author>
<name>Matthias Klose</name>
<email>doko@ubuntu.com</email>
</author>
<published>2004-08-15T17:04:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2e829c0214fc68655f1aaf2d4279697ee55394b3'/>
<id>urn:sha1:2e829c0214fc68655f1aaf2d4279697ee55394b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>'inspect' was not listing the functions in a module properly if the module was</title>
<updated>2004-08-13T18:46:24Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2004-08-13T18:46:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b3de2e13baaac7573720c62276984cba13c01c75'/>
<id>urn:sha1:b3de2e13baaac7573720c62276984cba13c01c75</id>
<content type='text'>
reached through a symlink (was comparing path of module to path to function and
were not matching because of the symlink).  os.path.realpath() is now used to
solve this discrepency.

Closes bug #570300.  Thanks Johannes Gijsbers for the fix.
</content>
</entry>
<entry>
<title>SF bug #973092:  inspect.getframeinfo bug if 'context' is to big</title>
<updated>2004-06-15T11:22:53Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-06-15T11:22:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a050171ee9e44697260cd5415310777dadb5555e'/>
<id>urn:sha1:a050171ee9e44697260cd5415310777dadb5555e</id>
<content type='text'>
Make sure the start argument is not negative.
</content>
</entry>
</feed>
