Modifying "traceback" objects

Christian Tismer tismer at tismer.com
Tue Apr 11 14:31:16 EDT 2000


Michael Hudson wrote:
> 
> Randall Hopper <aa8vb at yahoo.com> writes:
> 
> >      Is it possible to add frames to the current traceback object from
> > inside a C extension?
> 
> I'd say it would be difficult.  What would you put in the "f_code" field?

Just have a look at the builtins "map" code in Stackless Python.
It provides a name, a code object and so forth, and it appears
nicely inside tracebacks.
I think it was very similar to what Michael proposes.

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaunstr. 26                  :    *Starship* http://starship.python.net
14163 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     where do you want to jump today?   http://www.stackless.com




More information about the Python-list mailing list