Re: Adding extra frames to traceback in C module

2006-06-10 Thread greg
Roger Binns wrote: > One thing I would like to do in my extension module is > add extra frames to the traceback when an extension > occurs. > > I did find snippets of code > doing things like PyTraceback_Here but they use a real > Python frame which I don't have and don't know how to > synthesize.

Re: Adding extra frames to traceback in C module

2006-06-10 Thread John Machin
On 10/06/2006 1:24 PM, Roger Binns wrote: > One thing I would like to do in my extension module is > add extra frames to the traceback when an extension > occurs. At the moment C code is invisible to tracebacks. > This is relevant when the C code makes a Python callback. [snip] > I couldn't find

Adding extra frames to traceback in C module

2006-06-09 Thread Roger Binns
One thing I would like to do in my extension module is add extra frames to the traceback when an extension occurs. At the moment C code is invisible to tracebacks. This is relevant when the C code makes a Python callback. For example if the following code sequence happens (time going down) Python