def getargtxt(obj, one_arg_per_line=True):
 args = getargs(obj)
 if args:
  sep = ', '
  textlist = None
  for (i_arg, arg) in enumerate(args):
   if (textlist is None):
    textlist = ['']
   textlist[(-1)] += arg
   if (i_arg < (len(args) - 1)):
    textlist[(-1)] += sep
    if ((len(textlist[(-1)]) >= 32) or one_arg_per_line):
     textlist.append('')
  if (inspect.isclass(obj) or inspect.ismethod(obj)):
   if (len(textlist) == 1):
    return None
   if (('self' + sep) in textlist):
    textlist.remove(('self' + sep))
  return textlist

def getargtxt ( obj , one_arg_per_line = True ) : args = getargs ( obj ) if args : sep = ', ' textlist = None for ( i_arg , arg ) in enumerate ( args ) : if ( textlist is None ) : textlist = [ '' ] textlist [ ( - 1 ) ] += arg if ( i_arg < ( len ( args ) - 1 ) ) : textlist [ ( - 1 ) ] += sep if ( ( len ( textlist [ ( - 1 ) ] ) >= 32 ) or one_arg_per_line ) : textlist . append ( '' ) if ( inspect . isclass ( obj ) or inspect . ismethod ( obj ) ) : if ( len ( textlist ) == 1 ) : return None if ( ( 'self' + sep ) in textlist ) : textlist . remove ( ( 'self' + sep ) ) return textlist
get the names and default values of a functions arguments return list with separators formatted for calltips .