class Category(ItemBase):
“Basic class for single classification labels.”
def init(self,data,obj): self.data,self.obj = data,obj
def int(self): return int(self.data)
def str(self): return str(self.obj)
Category did overwrite str(self) implemented. Can’t figure out why print() needs to be called explicitly.