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

Method __move_x_cub1_cuf1

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

Source from the content-addressed store, hash-verified

752 self.__write_code(self._hpa, x)
753
754 def __move_x_cub1_cuf1(self, x: int) -> None:
755 assert self._cuf1 is not None
756 assert self._cub1 is not None
757 dx = x - self.posxy[0]
758 if dx > 0:
759 self.__write_code(self._cuf1 * dx)
760 elif dx < 0:
761 self.__write_code(self._cub1 * (-dx))
762
763 def __move_x_cub_cuf(self, x: int) -> None:
764 dx = x - self.posxy[0]

Callers

nothing calls this directly

Calls 1

__write_codeMethod · 0.95

Tested by

no test coverage detected