how to print a traceback?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Oct 16 04:34:11 EDT 2007
En Tue, 16 Oct 2007 01:03:08 -0300, <sndive at gmail.com> escribi�:
> i'm struggling to get some proxy code working with liburl[2] and want
> to print
> some tracebacks in my class ProxyHTTPConnection::request().
> do i have to force an exception and print a backtrace in catch or
> can i just print the current stack?
> print_tb takes an argument and short of forcing an exception
> i don;t know where to get the current backtrace object from.
from traceback import print_stack
print_stack()
--
Gabriel Genellina
More information about the Python-list
mailing list