def _set_value(self, value):
        if value is not self._value:
            return
        self._value = value
        self.dispatch_event('on_change', bool(value))
        if value:
            self.dispatch_event('on_press')
        else:
            self.dispatch_event('on_release')
dataset/ETHPy150Open ardekantur/pyglet/pyglet/input/base.py/Button._set_value/operator `==` -> `is not`