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 vstinner
Recipients itamarst, vstinner
Date 2013-10-10.08:14:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381392855.42.0.913399307817.issue19206@psf.upfronthosting.co.za>
In-reply-to
Content
> Unfortunately, the traceback.py module reads from files to load the source lines for the traceback (using linecache.py).

linecache is supposed to cache the result. When all files generating tracebacks of your project are cached, only os.stat() is called on each file to check if the file has been modified.

But I'm not sure I understood your request: do you want the line content in your traceback or not? If you don't want the line content, the traceback module should be modified to add an option "don't read file content".
History
Date User Action Args
2013-10-10 08:14:15vstinnersetrecipients: + vstinner, itamarst
2013-10-10 08:14:15vstinnersetmessageid: <1381392855.42.0.913399307817.issue19206@psf.upfronthosting.co.za>
2013-10-10 08:14:15vstinnerlinkissue19206 messages
2013-10-10 08:14:15vstinnercreate