[ python-Bugs-1051638 ] incorrect traceback filename from pyc

SourceForge.net noreply at sourceforge.net
Sun Oct 24 02:40:32 CEST 2004


Bugs item #1051638, was opened at 2004-10-21 12:24
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1051638&group_id=5470

Category: Parser/Compiler
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Kevin Quick (kquick)
Assigned to: Nobody/Anonymous (nobody)
Summary: incorrect traceback filename from pyc

Initial Comment:
The .pyc file apparently caches the entire path of the source file during 
compilation, causing it to report improper path information if the 
resulting code is moved and an exception occurs.

$ python
Python 2.3.3 (#1, Oct 18 2004, 16:10:24) 
[GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] 
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 


----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-10-23 19:40

Message:
Logged In: YES 
user_id=80475

IMO, this is not a bug.  A pyc file has no way of knowing
the future locations of the source that originally created it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1051638&group_id=5470


More information about the Python-bugs-list mailing list