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

Method _stage0

Lib/idlelib/rpc.py:368–373  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

366 return self._stage1()
367
368 def _stage0(self):
369 if self.bufstate == 0 and len(self.buff) >= 4:
370 s = self.buff[:4]
371 self.buff = self.buff[4:]
372 self.bufneed = struct.unpack("<i", s)[0]
373 self.bufstate = 1
374
375 def _stage1(self):
376 if self.bufstate == 1 and len(self.buff) >= self.bufneed:

Callers 1

pollpacketMethod · 0.95

Calls 1

unpackMethod · 0.80

Tested by

no test coverage detected