How to increase the depth of the python traceback?

Milton frank-milton at hotmail.com
Tue Jun 3 17:18:10 EDT 2008


How to increase the depth of the python traceback?

I have some code that gets an exception deep in the python logging
module and the traceback produced does not go back far enough to show
my own code. How can the traceback limit be controlled in Python 2.5.

The docs indicate that there is an attribute in the sys module
“tracebacklimit” that defaults to 1000 (affectively no limit). I
cannot find this attribute in the sys module of Python2.5




More information about the Python-list mailing list