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 in a
Changes by Björn Sandberg Lynch :
Added file: http://bugs.python.org/file30901/traceback2.patch
___
Python tracker
<http://bugs.python.org/issue17911>
___
___
Python-bug
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
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