[Python-Dev] Tracebacks into C code (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sun Jan 11 14:00:19 EST 2004
- Previous message: [Python-Dev] Tracebacks into C code
- Next message: [Python-Dev] Tracebacks into C code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Edward C. Jones wrote:
Suppose: I have a Python extension written in C. "MyFunc" is a function in the extension which is visible at the Python level. "MyFunc" calls the C function "Cfunc1". "Cfunc1" calls the C function "Cfunc2". "Cfunc2" raises an exception by calling something like "PyErrSetString". How do I make the Python traceback include "Cfunc1" and "Cfunc2"?
You need to create frame objects. See Modules/pyexpat.c for an example.
Regards, Martin
P.S. This is OT for python-dev.
- Previous message: [Python-Dev] Tracebacks into C code
- Next message: [Python-Dev] Tracebacks into C code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]