MCPcopy Index your code
hub / github.com/RustPython/RustPython / suspend_history

Method suspend_history

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

Source from the content-addressed store, hash-verified

295
296 @contextmanager
297 def suspend_history(self) -> SimpleContextManager:
298 try:
299 old_history = self.history[:]
300 del self.history[:]
301 yield
302 finally:
303 self.history[:] = old_history
304
305 def prepare(self) -> None:
306 super().prepare()

Callers 2

suspendMethod · 0.95
maybe_run_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected