[Python-Dev] Python 2.5 bug? Changes in behavior of traceback module

Georg Brandl g.brandl at gmx.net
Sun Sep 24 14:50:50 CEST 2006


Michael Glassford wrote:
> In Python 2.4, traceback.print_exc() and traceback.format_exc() silently 
> do nothing if there is no active exception; in Python 2.5, they raise an 
> exception. Not too difficult to handle, but unexpected (and a pain if 
> you use it in a lot of places). I assume it was an unintentional change?

This was certainly an unintentional change while restructuring some
internal traceback routines.

It's now fixed in SVN.

Georg



More information about the Python-Dev mailing list