Patches item #1754483, was opened at 2007-07-15 15:40 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1754483&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library (Lib) Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Kevin Goodsell (kevingoodsell) Assigned to: Nobody/Anonymous (nobody) Summary: linecache package handling Initial Comment: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1754483&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches