code: def get_list(file,fmt):
      '''makes a list out of the fmt from the LspOutput f using the format
         i for int
         f for float
         d for double
         s for string'''
      out=[]
      for i in fmt:
          if i == 'i':
              out.append(get_int(file));
          elif i == 'f' or i == 'd':
              out.append(get_float(file));
          elif i == 's':
              out.append(get_str(file));
          else:
              raise ValueError("Unexpected flag '{}'".format(i));
      return outf get_list(file,fmt):
      '''makes a list out of the fmt from the LspOutput f using the format
         i for int
         f for float
         d for double
         s for string'''
      out=[]
      for i in fmt:
          if i == 'i':
              out.append(get_int(file));
          elif i == 'f' or i == 'd':
              out.append(get_float(file));
          elif i == 's':
              out.append(get_str(file));
          else:
              raise ValueError("Unexpected flag '{}'".format(i));
      return out;
docs: makes a list out of the fmt from the LspOutput f using the format
         i for int
         f for float
         d for double
         s for string