Hello all,


I have :

    def foo():
           print( getattr(foo, 'func_name'))

Where I get the name of the function but I add to give the name of this function. Indeed it is not very helpful... I checked the globals() but how I can do to get globals()['toto'].func_name. This is not more helpful ;o)

If you have any idea to get the caller name inside the caller.

Cheers
Karim
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to