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

Method get_item

Lib/_pyrepl/historical_reader.py:285–289  ·  view source on GitHub ↗
(self, i: int)

Source from the content-addressed store, hash-verified

283 self.last_refresh_cache.invalidated = True
284
285 def get_item(self, i: int) -> str:
286 if i != len(self.history):
287 return self.transient_history.get(i, self.history[i])
288 else:
289 return self.transient_history.get(i, self.get_unicode())
290
291 @contextmanager
292 def suspend(self) -> SimpleContextManager:

Callers 3

search_nextMethod · 0.95
isearch_nextMethod · 0.95
doMethod · 0.45

Calls 3

lenFunction · 0.85
get_unicodeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected