Can I hide internal method calls from an exception stack trace?

alex23 wuwei23 at gmail.com
Fri Nov 7 11:05:26 EST 2008


On Nov 8, 1:25 am, Paul McGuire <pt... at austin.rr.com> wrote:
> Is there any way for me to suppress these non-value-added API-internal
> traceback levels?

Hey Paul,

Have you taken a look at the traceback module?

print_tb(sys.last_traceback, <limit>) or
extract_tb(sys.last_traceback, limit) could do the trick.



More information about the Python-list mailing list