[issue1728] distutils.cmd breaks inspect

2008-01-03 Thread astronouth7303
New submission from astronouth7303: Something about distutils/cmd.py breaks inspect.findsource(). I am unsure if this is a bug with DistUtils or the inspect module. >>> import inspect, distutils.cmd >>> inspect.findsource(distutils.cmd.install_misc.get_outputs) Causes finds

[issue1728] distutils.cmd breaks inspect

2008-01-03 Thread astronouth7303
astronouth7303 added the comment: sqlite3/test/types.py also seems to cause the same error, although the difference is much wider (101 lines vs. 351). __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1728] distutils.cmd breaks inspect

2008-01-03 Thread astronouth7303
astronouth7303 added the comment: The exact traceback is as follows: >>> findsource(distutils.cmd.install_misc.get_outputs) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/inspect.py", line 510, in findsource if pat.match(l

[issue1728] distutils.cmd breaks inspect

2008-01-03 Thread astronouth7303
astronouth7303 added the comment: Indeed. For the distutils.cmd case, linecache.updatecache() takes "cmd.py" and tracks that down to /usr/lib/python2.5/cmd.py. This would also explain the sqlite3.tests.types problem. The bug seems to be that the inspect module doesn't pass