Sunday, 25 August 2013

Why does traceback.format_exception require a traceback parameter instead of using ex.__traceback__?

Why does traceback.format_exception require a traceback parameter instead
of using ex.__traceback__?

I've been looking at the traceback module, and I'm trying to understand
why format_exception requires a traceback for the third argument, instead
of using __traceback__. I tried passing this in my code and it worked fine

No comments:

Post a Comment