code: def read_history(self, num=10, segment=0):
          
          if num < 0:
              num = 0
          if segment < 0:
              raise TypeError("segment must be >= 0")
          return self._builder.read_history(num, segment)
docs: Outputs the last `num` elements that were appended either by `append` or
          `append_multiple`.
  
          Returns
          -------
          out : list