Eric Frederich, 16.04.2012 20:14:
> I embed Python in a 3rd party application.
> I need to use their conventions for errors.
> 
> Looking here...
>     http://docs.python.org/extending/embedding.html#pure-embedding
> ....the example uses PyErr_Print() but that goes to stdout or stderr or
> something.
> 
> I need to put the error somewhere else.  How can I get at the traceback
> text?

You can use the traceback module to format it, just as you would in Python.

If you need further help, you may want to provide more information, e.g.
what "their conventions" are and what kind of application we are talking
about (graphic, headless server, ...).

Stefan

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to