Nikolaus Rath added the comment:

Here's a first attempt at improvement based on my guess:

os.writev(fd, buffers)

    Write the contents of buffers to file descriptor fd, where buffers is an 
arbitrary sequence of buffers. In this context, a buffer may be any Python 
object that provides a Memory View, i.e. that may be used to instantiate a 
`memoryview` object (e.g. a bytes or bytearray object). writev writes the 
contents of each memory view to the file descriptor and returns the total 
number of bytes written.

os.readv(fd, buffers)

    Read from a file descriptor into a number of writable buffers. buffers is 
an arbitrary sequence of writable buffers. In this context, a buffer may be any 
Python object that provides a writeable Memory View, i.e. that may be used to 
instantiate a `memoryview` object whose `read_only` attribute is false (for 
example, a bytearray object). Writeable memory views have a fixed size, and 
readv will transfer data into each buffer until it is full and then move on to 
the next buffer in the sequence to hold the rest of the data. readv returns the 
total number of bytes read (which may be less than the total capacity of all 
the buffers).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17811>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to