def FormatArguments(*args, **kwargs):
 def _FormatArg(arg):
  return FormatLogArgument(arg)
 args = [_FormatArg(arg) for arg in args]
 kwargs = {key: _FormatArg(value) for (key, value) in kwargs.items()}
 return ('(args=%s, kwargs=%s)' % (args, kwargs))

def FormatArguments ( * args , ** kwargs ) : def _FormatArg ( arg ) : return FormatLogArgument ( arg ) args = [ _FormatArg ( arg ) for arg in args ] kwargs = { key : _FormatArg ( value ) for ( key , value ) in kwargs . items ( ) } return ( '(args=%s, kwargs=%s)' % ( args , kwargs ) )
format function call arguments in a human-readable way for logging .