MCPcopy Index your code
hub / github.com/RustPython/RustPython / __move_x_cub1_cuf1

Method __move_x_cub1_cuf1

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

Source from the content-addressed store, hash-verified

733 self.__write_code(self._hpa, x)
734
735 def __move_x_cub1_cuf1(self, x: int) -> None:
736 assert self._cuf1 is not None
737 assert self._cub1 is not None
738 dx = x - self.posxy[0]
739 if dx > 0:
740 self.__write_code(self._cuf1 * dx)
741 elif dx < 0:
742 self.__write_code(self._cub1 * (-dx))
743
744 def __move_x_cub_cuf(self, x: int) -> None:
745 dx = x - self.posxy[0]

Callers

nothing calls this directly

Calls 1

__write_codeMethod · 0.95

Tested by

no test coverage detected