@@ -8100,9 +8100,12 @@ iov_cleanup(struct iovec *iov, Py_buffer *buf, int cnt)
81008100#ifdef HAVE_READV
81018101PyDoc_STRVAR (posix_readv__doc__ ,
81028102"readv(fd, buffers) -> bytesread\n\n\
8103- Read from a file descriptor into a number of writable buffers. buffers\n\
8104- is an arbitrary sequence of writable buffers.\n\
8105- Returns the total number of bytes read." );
8103+ Read from a file descriptor fd into a number of mutable, bytes-like\n\
8104+ objects (\"buffers\"). readv will transfer data into each buffer\n\
8105+ until it is full and then move on to the next buffer in the sequence\n\
8106+ to hold the rest of the data.\n\n\
8107+ readv returns the total number of bytes read (which may be less than\n\
8108+ the total capacity of all the buffers." );
81068109
81078110static PyObject *
81088111posix_readv (PyObject * self , PyObject * args )
@@ -8465,9 +8468,10 @@ posix_pipe2(PyObject *self, PyObject *arg)
84658468#ifdef HAVE_WRITEV
84668469PyDoc_STRVAR (posix_writev__doc__ ,
84678470"writev(fd, buffers) -> byteswritten\n\n\
8468- Write the contents of buffers to a file descriptor, where buffers is an\n\
8469- arbitrary sequence of buffers.\n\
8470- Returns the total bytes written." );
8471+ Write the contents of *buffers* to file descriptor *fd*. *buffers*\n\
8472+ must be a sequence of bytes-like objects.\n\n\
8473+ writev writes the contents of each object to the file descriptor\n\
8474+ and returns the total number of bytes written." );
84718475
84728476static PyObject *
84738477posix_writev (PyObject * self , PyObject * args )
0 commit comments