where am I ?
Christos TZOTZIOY Georgiou
tzot at sil-tec.gr
Wed Mar 12 22:25:29 CET 2003
On 12 Mar 2003 13:00:44 -0800, rumours say that mis6 at pitt.edu (Michele
Simionato) might have written:
>I would like to define a function 'whereami' that returns information
>about the scope where it is called. For instance if I call 'whereami'
>inside a function f, it should give me f, if I call 'whereami' inside a class
>C, it should give me the class C, etc.
Google is our friend:
"ASPN : Python Cookbook : Determining Current Function Name"
'python current function frame' gave it as second hit.
TZOTZIOY, I speak England very best,
bofh at sil-tec.gr
(I'm a postmaster luring spammers; please spam me!
...and my users won't ever see your messages again...)
More information about the Python-list