[issue17911] Extracting tracebacks does too much work

2013-07-18 Thread Björn Sandberg Lynch
Björn Sandberg Lynch added the comment: I was trying to stay with the established pattern of the existing methods. There are two unrelated issues to solve here - deferring linecache access, and the extract_exception functionality. When it comes to deferral, we could wrap each line

[issue17911] Extracting tracebacks does too much work

2013-07-12 Thread Björn Sandberg Lynch
Changes by Björn Sandberg Lynch adaptivelo...@gmail.com: Added file: http://bugs.python.org/file30901/traceback2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17911

[issue17911] Extracting tracebacks does too much work

2013-07-11 Thread Björn Sandberg Lynch
Björn Sandberg Lynch added the comment: After thinking about it, I decided to defer instead of suppress line fetching. Suppressing would still give a traceback later, but not the same as the original. extract_exception is where the meat is. There's a slight quirk in how context works

[issue17911] Extracting tracebacks does too much work

2013-07-08 Thread Björn Sandberg Lynch
Björn Sandberg Lynch added the comment: I've been looking into this as an easy piece to bite off. If I understand Guido correctly, he'd like to defer or suppress the linecache call when getting the tb summary. The problem with deferring is that you need to access f_globals for the loader