MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / read_some

Method read_some

tools/python-3.11.9-amd64/Lib/telnetlib.py:344–357  ·  view source on GitHub ↗

Read at least one byte of cooked data unless EOF is hit. Return b'' if EOF is hit. Block if no data is immediately available.

(self)

Source from the content-addressed store, hash-verified

342 return buf
343
344 def read_some(self):
345 """Read at least one byte of cooked data unless EOF is hit.
346
347 Return b'' if EOF is hit. Block if no data is immediately
348 available.
349
350 """
351 self.process_rawq()
352 while not self.cookedq and not self.eof:
353 self.fill_rawq()
354 self.process_rawq()
355 buf = self.cookedq
356 self.cookedq = b''
357 return buf
358
359 def read_very_eager(self):
360 """Read everything that's possible without blocking in I/O (eager).

Callers

nothing calls this directly

Calls 2

process_rawqMethod · 0.95
fill_rawqMethod · 0.95

Tested by

no test coverage detected