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

Method do

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

Source from the content-addressed store, hash-verified

231
232class suspend(Command):
233 def do(self) -> None:
234 import signal
235
236 r = self.reader
237 p = r.pos
238 r.console.finish()
239 os.kill(os.getpid(), signal.SIGSTOP)
240 ## this should probably be done
241 ## in a handler for SIGCONT?
242 r.console.prepare()
243 r.pos = p
244 # r.posxy = 0, 0 # XXX this is invalid
245 r.dirty = True
246 r.console.screen = []
247
248
249class up(MotionCommand):

Callers

nothing calls this directly

Calls 3

finishMethod · 0.45
killMethod · 0.45
prepareMethod · 0.45

Tested by

no test coverage detected