[Python-ideas] feature to make traceback objects usable without references to frame locals and globals

Nick Coghlan ncoghlan at gmail.com
Sun Jun 27 02:21:41 CEST 2010


On Sun, Jun 27, 2010 at 7:53 AM, M.-A. Lemburg <mal at egenix.com> wrote:
>> He's not talking about creating traceback objects outside the core, but
>> being able to reuse tracebacks created by the core without keeping alive
>> a whole chain of objects.
>
> With the question I was referring to the suggestion by
> Greg Ewing in which he seemed to imply that Pyrex and Cython
> create traceback objects.

When Python code calls into Pyrex/C code which then call back into
Python, I understand they insert dummy frames into the tracebacks to
make the call stack more complete.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list