[Python-ideas] feature to make traceback objects usable without references to frame locals and globals
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Jun 30 02:50:35 CEST 2010
Terry Reedy wrote:
> It then seems to me that one should extract the file name and line
> number info one wants to save before exiting the exception clause and
> let the traceback exception and traceback go on exit. Is a library
> function needed to make extraction easier?
That would require building your own custom traceback
structure that would be incompatible with any of the
standard functions available for formatting and printing
tracebacks.
--
Greg
More information about the Python-ideas
mailing list