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

Method do

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

Source from the content-addressed store, hash-verified

310
311class left(MotionCommand):
312 def do(self) -> None:
313 r = self.reader
314 for _ in range(r.get_arg()):
315 p = r.pos - 1
316 if p >= 0:
317 r.pos = p
318 else:
319 self.reader.error("start of buffer")
320
321
322class right(MotionCommand):

Callers

nothing calls this directly

Calls 2

get_argMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected