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

Method get_item

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

Source from the content-addressed store, hash-verified

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

Callers 3

search_nextMethod · 0.95
isearch_nextMethod · 0.95
doMethod · 0.80

Calls 2

get_unicodeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected