code: def _get_fields(self):
          
          if self.data is not None:
              return self.begin, self.end, self.data
          else:
              return self.begin, self.end
docs: Used by str, unicode, repr and __reduce__.
  
          Returns only the fields necessary to reconstruct the Interval.
          :return: reconstruction info
          :rtype: tuple