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

Method do

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

Source from the content-addressed store, hash-verified

55
56class next_history(commands.Command):
57 def do(self) -> None:
58 r = self.reader
59 if r.historyi == len(r.history):
60 r.error("end of history list")
61 return
62 r.select_item(r.historyi + 1)
63
64
65class previous_history(commands.Command):

Callers

nothing calls this directly

Calls 2

errorMethod · 0.45
select_itemMethod · 0.45

Tested by

no test coverage detected