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

Method write

tools/python-3.11.9-amd64/Lib/_pyio.py:772–781  ·  view source on GitHub ↗

Write the given bytes buffer to the IO stream. Return the number of bytes written, which is always the length of b in bytes. Raises BlockingIOError if the buffer is full and the underlying raw stream cannot accept more data at the moment.

(self, b)

Source from the content-addressed store, hash-verified

770 return n
771
772 def write(self, b):
773 """Write the given bytes buffer to the IO stream.
774
775 Return the number of bytes written, which is always the length of b
776 in bytes.
777
778 Raises BlockingIOError if the buffer is full and the
779 underlying raw stream cannot accept more data at the moment.
780 """
781 self._unsupported("write")
782
783 def detach(self):
784 """

Callers

nothing calls this directly

Calls 1

_unsupportedMethod · 0.80

Tested by

no test coverage detected