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

Method write

Lib/_pyio.py:644–650  ·  view source on GitHub ↗

Write the given buffer to the IO stream. Returns the number of bytes written, which may be less than the length of b in bytes.

(self, b)

Source from the content-addressed store, hash-verified

642 self._unsupported("readinto")
643
644 def write(self, b):
645 """Write the given buffer to the IO stream.
646
647 Returns the number of bytes written, which may be less than the
648 length of b in bytes.
649 """
650 self._unsupported("write")
651
652io.RawIOBase.register(RawIOBase)
653

Callers

nothing calls this directly

Calls 1

_unsupportedMethod · 0.80

Tested by

no test coverage detected