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

Method do

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

Source from the content-addressed store, hash-verified

85
86class restore_history(commands.Command):
87 def do(self) -> None:
88 r = self.reader
89 if r.historyi != len(r.history):
90 if r.get_unicode() != r.history[r.historyi]:
91 r.buffer = list(r.history[r.historyi])
92 r.pos = len(r.buffer)
93 r.dirty = True
94
95
96class first_history(commands.Command):

Callers

nothing calls this directly

Calls 2

listClass · 0.85
get_unicodeMethod · 0.80

Tested by

no test coverage detected