]> granicus.if.org Git - python/commitdiff
indicate that read/write work with bytes (closes #18009)
authorBenjamin Peterson <benjamin@python.org>
Fri, 24 May 2013 21:35:57 +0000 (14:35 -0700)
committerBenjamin Peterson <benjamin@python.org>
Fri, 24 May 2013 21:35:57 +0000 (14:35 -0700)
Modules/posixmodule.c

index a351caeddc7771ddee58689c388a2b8e4b4bbf09..0cb18365adfce665f614237daae818bb75310712 100644 (file)
@@ -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)