code: def to_params(self):
          
          dic = self.__dict__
          return [(k, repr(dic[k])) for k in sorted(dic)
                  if not k.startswith('_')]
docs: Convert the instance dictionary into a sorted list of pairs
          (name, valrepr) where valrepr is the string representation of
          the underlying value.