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

Method do

Lib/_pyrepl/historical_reader.py:66–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64
65class previous_history(commands.Command):
66 def do(self) -> None:
67 r = self.reader
68 if r.historyi == 0:
69 r.error("start of history list")
70 return
71 r.select_item(r.historyi - 1)
72
73
74class history_search_backward(commands.Command):

Callers

nothing calls this directly

Calls 2

errorMethod · 0.45
select_itemMethod · 0.45

Tested by

no test coverage detected