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

Method do

Lib/_pyrepl/commands.py:217–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

215
216class interrupt(FinishCommand):
217 def do(self) -> None:
218 import signal
219
220 self.reader.console.finish()
221 self.reader.finish()
222 os.kill(os.getpid(), signal.SIGINT)
223
224
225class ctrl_c(Command):

Callers

nothing calls this directly

Calls 2

finishMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected