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

Method write

Lib/_pyio.py:738–747  ·  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

736 return n
737
738 def write(self, b):
739 """Write the given bytes buffer to the IO stream.
740
741 Return the number of bytes written, which is always the length of b
742 in bytes.
743
744 Raises BlockingIOError if the buffer is full and the
745 underlying raw stream cannot accept more data at the moment.
746 """
747 self._unsupported("write")
748
749 def detach(self):
750 """

Callers

nothing calls this directly

Calls 1

_unsupportedMethod · 0.80

Tested by

no test coverage detected