Just <[EMAIL PROTECTED]> wrote: > >> On Tue, 25 Jul 2006 14:20:41 +0200, Andre Poenitz wrote: >> > >> > >> >Bear with me - I am new to Python. (And redirect me to a more suitable >> >newsgroup in case this one is not appropriate.) >> > >> >I am trying to embed Python into a C++ application and want to get back >> >a backtrace in case of errors in the python code. >> >> I think you'd have more luck with the traceback module, which has such >> methods as format_exception and print_tb. > > From C, PyErr_Print() is often handy (if only for debugging).
I'd like to display the backtrace i a fancy gui widget, and PyErr_Print sends everything to stderr... Andre' -- http://mail.python.org/mailman/listinfo/python-list