Accessing stack (context) frames

Ingo Blank spam at ingoblank.com
Thu Jul 11 21:31:12 EDT 2002


Hi,

I wonder how it is possible, to access the current context (stack) frame
in Python.
In Smalltalk, there is (mostly) a "thisContext" method, from which one
can retrieve informations like the <name> of the currently executed method.

And that's exactly what I need. Retrieving the <name> of the method,
currently
executed.

def someFunction():
    myName = ... # How ?


Thanks

--ingo
voy NG arktb QBG qr [ rot13 ]

PGP PublicKey
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x18B44974






More information about the Python-list mailing list