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

Method mainloop

Lib/idlelib/rpc.py:277–288  ·  view source on GitHub ↗

Listen on socket until I/O not ready or EOF pollresponse() will loop looking for seq number None, which never comes, and exit on EOFError.

(self)

Source from the content-addressed store, hash-verified

275 raise EOFError
276
277 def mainloop(self):
278 """Listen on socket until I/O not ready or EOF
279
280 pollresponse() will loop looking for seq number None, which
281 never comes, and exit on EOFError.
282
283 """
284 try:
285 self.getresponse(myseq=None, wait=0.05)
286 except EOFError:
287 self.debug("mainloop:return")
288 return
289
290 def getresponse(self, myseq, wait):
291 response = self._getresponse(myseq, wait)

Callers 8

readlineMethod · 0.45
mainFunction · 0.45
handleMethod · 0.45
_testFunction · 0.45
runFunction · 0.45
new_test_methodFunction · 0.45
showSelectedErrorMethod · 0.45
mainFunction · 0.45

Calls 2

getresponseMethod · 0.95
debugMethod · 0.95

Tested by 4

runFunction · 0.36
new_test_methodFunction · 0.36
showSelectedErrorMethod · 0.36
mainFunction · 0.36