parameters: (gdb_type, n)
return_statement: return result
docstring: Return a string for the type with the first n (1, ...) generic args.
docstring_summary: Return a string for the type with the first n (1, ...) generic args.
docstring_tokens: Return a string for the type with the first n ( 1 ... ) generic args .
function: def _typename_with_n_generic_arguments(gdb_type, n):
      """Return a string for the type with the first n (1, ...) generic args."""
  
      base_type = _remove_generics(_prettify_typename(gdb_type))
      arg_list = [base_type]
      template = "%s<"
      for i in range(n):
          arg_list.append(_typename_for_nth_generic_argument(gdb_type, i))
          template += "%s, "
      result = (template[:-2] + ">") % tuple(arg_list)
      return result
function_tokens: def _typename_with_n_generic_arguments ( gdb_type , n ) : base_type = _remove_generics ( _prettify_typename ( gdb_type ) ) arg_list = [ base_type ] template = "%s<" for i in range ( n ) : arg_list . append ( _typename_for_nth_generic_argument ( gdb_type , i ) ) template += "%s, " result = ( template [ : - 2 ] + ">" ) % tuple ( arg_list ) return result