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

Method do

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

get_argMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected