Print a traceback from an extension?
gb at cs.unc.edu
gb at cs.unc.edu
Sat Jul 13 19:18:12 EDT 2002
More information about the Python-list mailing list
Sat Jul 13 19:18:12 EDT 2002
- Previous message (by thread): Print a traceback from an extension?
- Next message (by thread): Print a traceback from an extension?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can I print a traceback from within a extension written in C? I know we're supposed to just keep returning NULL until we make it back to the main loop. That normally works fine. But I'm calling Python code from a callback that is called by C code. The Python code fails so PyEval_CallObject returns NULL. I want to provide a helpful message at that point. Can this be done? If so, can someone suggest where to look for an example? Thanks gb
- Previous message (by thread): Print a traceback from an extension?
- Next message (by thread): Print a traceback from an extension?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list