pyb3.py
def funcToString(func, *args, **kwargs): # {{{0
  "Format a string representation of the function and arguments"
  try:
    name = func.__name__
  except AttributeError as e:
    name = str(func)
  strs = []
  for i in args:
    strs.append(repr(i))
  for k,v in kwargs.items():
    strs.append("{}={!r}".format(k, v))
  return "{}({})".format(name, ", ".join(strs))
Format a string representation of the function and arguments
Format a string representation of the function and arguments
Format a string representation of the function and arguments
def funcToString(func, *args, **kwargs): 
  try:
    name = func.__name__
  except AttributeError as e:
    name = str(func)
  strs = []
  for i in args:
    strs.append(repr(i))
  for k,v in kwargs.items():
    strs.append("{}={!r}".format(k, v))
  return "{}({})".format(name, ", ".join(strs))
def funcToString ( func , * args , ** kwargs ) : try : name = func . __name__ except AttributeError as e : name = str ( func ) strs = [ ] for i in args : strs . append ( repr ( i ) ) for k , v in kwargs . items ( ) : strs . append ( "{}={!r}" . format ( k , v ) ) return "{}({})" . format ( name , ", " . join ( strs ) )
Format a string representation of the function and arguments
Format a string representation of the function and arguments
# {{{0 "Format a string representation of the function and arguments"
func