ID EN
IO

readinto

Python 3.11

Read bytes into a pre-allocated, writable bytes-like object b, and return the number of bytes read. For example, b might be a bytearray. If the object is in non-blocking mode and no bytes are available, None is returned.

Syntax

PYTHON
readinto(b, /)

See Also

bytes-like object bytearray