[Python-Dev] Reference cycles in Exception.__traceback__

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 6 22:41:44 CET 2014


Antoine Pitrou wrote:
> We might allow the creation of traceback objects, but without any custom 
> frame objects it is unclear how useful that would be.

When I was implementing Pyrex, I would have found it
very useful to be able to create Traceback objects
without Frames, but only if the Traceback were able
to hold a line number.

As it was, I had to create an entire fake Frame object
filled with mostly dummy values, just to get line
numbers printed in the traceback.

-- 
Greg


More information about the Python-Dev mailing list