def on_layout_update(self):
        if len(self._layout.document.text) > self.position:
            self.position = len(self._layout.document.text)
        self._update()
dataset/ETHPy150Open ardekantur/pyglet/pyglet/text/caret.py/Caret.on_layout_update/swapped operands of `>`