Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ do
Method
do
Lib/_pyrepl/commands.py:215–220 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
213
214
class
interrupt(FinishCommand):
215
def
do(self) -> None:
216
import
signal
217
218
self.reader.console.finish()
219
self.reader.finish()
220
os.kill(os.getpid(), signal.SIGINT)
221
222
223
class
ctrl_c(Command):
Callers
nothing calls this directly
Calls
2
finish
Method · 0.45
kill
Method · 0.45
Tested by
no test coverage detected