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

Method do

Lib/_pyrepl/commands.py:321–329  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

319
320class right(MotionCommand):
321 def do(self) -> None:
322 r = self.reader
323 b = r.buffer
324 for _ in range(r.get_arg()):
325 p = r.pos + 1
326 if p <= len(b):
327 r.pos = p
328 else:
329 self.reader.error("end of buffer")
330
331
332class beginning_of_line(MotionCommand):

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
get_argMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected