This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kevingoodsell
Recipients
Date 2007-07-15.22:40:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The linecache module does not handle packages at all (Guido mentions here that he wrote it before Python had packages: http://mail.python.org/pipermail/python-dev/2005-September/056870.html).

This seems to cause problems with pdb and pydoc, as illustrated by this example:

$ mkdir pydoc_test
$ cd pydoc_test
$ echo "#" > __init__.py
$ pydoc logging

This gives a traceback due to an out of range index, resulting essentially from ./__init__.py being confused with logging/__init__.py. A line number from the latter is used as an index into a list of the lines from the former.

Patch attached, and a bit more explanation can be seen here:

https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/70902
History
Date User Action Args
2007-08-23 15:59:10adminlinkissue1754483 messages
2007-08-23 15:59:10admincreate