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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1728>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to