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

Method finish

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

Source from the content-addressed store, hash-verified

406 p = len(s)
407
408 def finish(self) -> None:
409 super().finish()
410 ret = self.get_unicode()
411 for i, t in self.transient_history.items():
412 if i < len(self.history) and i != self.historyi:
413 self.history[i] = t
414 if ret and should_auto_add_history:
415 self.history.append(ret)
416
417
418should_auto_add_history = True

Callers

nothing calls this directly

Calls 4

superClass · 0.85
get_unicodeMethod · 0.80
itemsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected