![]() |
|
|
+ Search |
![]()
|
Jul 24th, 2002 11:02
Michael Chermside,
It's not generally a good programming technique, but there are some cases (eg: logging framework) where it is very useful to be able to find the name of the current function, or the function that called this one. For an illustration of how, see Alex Martelli's recipe in the Python Cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66062