how to get a function object from a frame object

Vijay Kumar getvijay at gmail.com
Tue May 17 18:18:00 EDT 2005


I have written a trace function and it recieves the current frame
object from the interpreter.
 
I want to know whether the event pertains to a class or method or function.

I can only get a code object from this frame object but not a function
object or class object.

Please post if any body have ideas.

Vijay



More information about the Python-list mailing list