Using Python traceback info from C/C++.

Jeff Holle jeff.holle at verizon.net
Mon Jul 12 06:04:13 EDT 2004


I'm interested in turning a Python Exception into a C++ exception in a 
Python Embedding application.

I've seen numerous examples of how to obtain part of this info.  They 
basically all start with a call to PyErr_Fetch.
This function takes 3 args, the last being traceback.  All of them do 
not use this variable.

In looking at Python 2.3.3's C API, I haven't found any functions that 
seem to help it obtaining the traceback information.

Have I missed something?

If not, is it safe to look into the implementation files of python and 
copy the pertinent portion into my application?



More information about the Python-list mailing list