<reponame>tmjnow/MoocX
class Count:
    def __init__(self, mymin, mymax):
        self.mymin = mymin
        self.mymax = mymax
        self.current = None

    def __getattribute__(self, item):
        # if item.startswith('cur'):
        #     raise AttributeError
        return object.__getattribute__(self, item)
        # or you can use ---return super().__getattribute__(item)


obj1 = Count(1, 10)
print(obj1.mymin)
print(obj1.mymax)
print(obj1.current)

class Count:
    def __init__(self, mymin, mymax):
        self.mymin = mymin
        self.mymax = mymax
        self.current = None

    def __getattribute__(self, item):
        # if item.startswith('cur'):
        #     raise AttributeError
        return object.__getattribute__(self, item)
        # or you can use ---return super().__getattribute__(item)


obj1 = Count(1, 10)
print(obj1.mymin)
print(obj1.mymax)
print(obj1.current)
# if item.startswith('cur'): #     raise AttributeError # or you can use ---return super().__getattribute__(item)