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

Method restart_shell

Lib/idlelib/pyshell.py:1382–1384  ·  view source on GitHub ↗

Callback for Run/Restart Shell Cntl-F6

(self, event=None)

Source from the content-addressed store, hash-verified

1380 self.text.see("restart")
1381
1382 def restart_shell(self, event=None):
1383 "Callback for Run/Restart Shell Cntl-F6"
1384 self.interp.restart_subprocess(with_cwd=True)
1385
1386 def showprompt(self):
1387 self.resetoutput()

Callers

nothing calls this directly

Calls 1

restart_subprocessMethod · 0.80

Tested by

no test coverage detected