MCPcopy Index your code
hub / github.com/bpython/bpython / reset

Method reset

bpython/history.py:191–193  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189 self.saved_line = line
190
191 def reset(self) -> None:
192 self.index = 0
193 self.saved_line = ""
194
195 def load(self, filename: Path, encoding: str) -> None:
196 with open(filename, encoding=encoding, errors="ignore") as hfile:

Callers 2

post_mortemFunction · 0.45
promptMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected