[Pyrex] creating and populating Python/C structs

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 6 12:42:27 CEST 2005


Christopher Armstrong wrote:

> I'm trying to construct traceback objects that look
> enough like real traceback objects and have similar information to the
> originals.

You might like to take a look at the code Pyrex itself
generates to create fake traceback objects when exceptions
get raised in Pyrex functions. Just open up any Pyrex-generated
C file and look for a function called __Pyx_AddTraceback
near the bottom.

Greg



More information about the Pyrex mailing list