def GetFunctionName(f):
 try:
  name = f.__name__
  if hasattr(f, 'im_class'):
   name = ((f.im_class.__name__ + '.') + name)
  return name
 except:
  return ''

def GetFunctionName ( f ) : try : name = f . __name__ if hasattr ( f , 'im_class' ) : name = ( ( f . im_class . __name__ + '.' ) + name ) return name except : return ''
creates a formatted function string for display .