parameters: (arglist)
return_statement: return args + extra, count
docstring: Generate an arg list marking TupleArgs
docstring_summary: Generate an arg list marking TupleArgs
docstring_tokens: Generate an arg list marking TupleArgs
function: def generateArgList(arglist):
      """Generate an arg list marking TupleArgs"""
      args = []
      extra = []
      count = 0
      for i in range(len(arglist)):
          elt = arglist[i]
          if isinstance(elt, str):
              args.append(elt)
          elif isinstance(elt, tuple):
              args.append(TupleArg(i * 2, elt))
              extra.extend(misc.flatten(elt))
              count = count + 1
          else:
              raise ValueError, "unexpect argument type:", elt
      return args + extra, count
function_tokens: def generateArgList ( arglist ) : args = [ ] extra = [ ] count = 0 for i in range ( len ( arglist ) ) : elt = arglist [ i ] if isinstance ( elt , str ) : args . append ( elt ) elif isinstance ( elt , tuple ) : args . append ( TupleArg ( i * 2 , elt ) ) extra . extend ( misc . flatten ( elt ) ) count = count + 1 else : raise ValueError , "unexpect argument type:" , elt return args + extra , count