Commit 3b08a297 authored by Benjamin Peterson's avatar Benjamin Peterson

indicate that read/write work with bytes (closes #18009)

parent c3511c1d
......@@ -7838,7 +7838,7 @@ posix_lseek(PyObject *self, PyObject *args)
PyDoc_STRVAR(posix_read__doc__,
"read(fd, buffersize) -> string\n\n\
"read(fd, buffersize) -> bytes\n\n\
Read a file descriptor.");
static PyObject *
......@@ -8008,8 +8008,8 @@ posix_pread(PyObject *self, PyObject *args)
#endif
PyDoc_STRVAR(posix_write__doc__,
"write(fd, string) -> byteswritten\n\n\
Write a string to a file descriptor.");
"write(fd, data) -> byteswritten\n\n\
Write bytes to a file descriptor.");
static PyObject *
posix_write(PyObject *self, PyObject *args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment