Stack trace in C

Andre Poenitz andre at wasy.de
Mon Aug 21 04:59:23 EDT 2006


Jean-Paul Calderone <exarkun at divmod.com> wrote:
> On Tue, 25 Jul 2006 14:20:41 +0200, Andre Poenitz <andre at wasy.de> 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.

That's where I got my 'inspiration' from.

Unfortunately my attempt to translate this into C failed, and I can't
see the reason.

Thanks for the hint nevertheless

Andre'



More information about the Python-list mailing list