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

Method set_startup_hook

Lib/_pyrepl/readline.py:510–511  ·  view source on GitHub ↗
(self, function: Callback | None = None)

Source from the content-addressed store, hash-verified

508 self.get_reader().history.append(self._histline(line))
509
510 def set_startup_hook(self, function: Callback | None = None) -> None:
511 self.startup_hook = function
512
513 def get_line_buffer(self) -> str:
514 return self.get_reader().get_unicode()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected