class DataType(object): def __init__(self, name): self.name = name def __str__(self): return self.name def __repr__(self): return "" % self DataType.INT = DataType("INT") DataType.BOOL = DataType("BOOL")