[Python-3000] exception info [was: Discussions with no PEPs]

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 14 06:16:08 CET 2007


Josiah Carlson wrote:
> By requiring people to be explicit about when they wanted the
> traceback (rather than giving it to them all the time via
> e.__traceback__), we can prevent many of those issues.

If any way is provided of getting a traceback given an
exception object, whether it's get_tb(e) or e.__traceback__,
it's necessary to keep the traceback around as long as
the exception object lives. So I don't see what you would
gain from this.

--
Greg


More information about the Python-3000 mailing list