MCPcopy Index your code
hub / github.com/python/cpython / __move_x_cub_cuf

Method __move_x_cub_cuf

Lib/_pyrepl/unix_console.py:763–768  ·  view source on GitHub ↗
(self, x: int)

Source from the content-addressed store, hash-verified

761 self.__write_code(self._cub1 * (-dx))
762
763 def __move_x_cub_cuf(self, x: int) -> None:
764 dx = x - self.posxy[0]
765 if dx > 0:
766 self.__write_code(self._cuf, dx)
767 elif dx < 0:
768 self.__write_code(self._cub, -dx)
769
770 def __move_short(self, x, y):
771 self.__move_x(x)

Callers

nothing calls this directly

Calls 1

__write_codeMethod · 0.95

Tested by

no test coverage detected