def FormatFunctionCall(func, *args, **kwargs):
 while (type(func) is partial):
  args = (func.args + args)
  if func.keywords:
   kwargs.update(func.keywords)
  func = func.func
 return ('%s%s' % (func.__name__, FormatArguments(*args, **kwargs)))

def FormatFunctionCall ( func , * args , ** kwargs ) : while ( type ( func ) is partial ) : args = ( func . args + args ) if func . keywords : kwargs . update ( func . keywords ) func = func . func return ( '%s%s' % ( func . __name__ , FormatArguments ( * args , ** kwargs ) ) )
format a function and its arguments in a human-readable way for logging .