[issue1728] distutils.cmd breaks inspect
astronouth7303
report at bugs.python.org
Thu Jan 3 20:26:30 CET 2008
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 findsource() to receive an IndexError.
>From some hacking, I've found that the root cause appears to be that
linecache.getlines() returns a number of lines that do not match the
actual file. (In my case, getlines() returns 405 lines when
distutils/cmd.py has 478 lines.)
This bug causes pydoc to break when it is pointed at distutils.cmd.
This is on Ubuntu Gutsy, Python 2.5.1
----------
components: None
messages: 59145
nosy: astronouth7303
severity: normal
status: open
title: distutils.cmd breaks inspect
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1728>
__________________________________
More information about the Python-bugs-list
mailing list