From: Georg Brandl Date: Wed, 29 Jul 2009 16:14:16 +0000 (+0000) Subject: #6586: fix return/argument type doc for os.read() and os.write(). X-Git-Tag: v3.2a1~2722 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b90be6972496b2eda91b981bc4d83ded68c34445;p=python #6586: fix return/argument type doc for os.read() and os.write(). --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index db96a56fb6..206a15ca34 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -540,9 +540,9 @@ by file descriptors. .. function:: read(fd, n) - Read at most *n* bytes from file descriptor *fd*. Return a string containing the + Read at most *n* bytes from file descriptor *fd*. Return a bytestring containing the bytes read. If the end of the file referred to by *fd* has been reached, an - empty string is returned. Availability: Unix, Windows. + empty bytes object is returned. Availability: Unix, Windows. .. note:: @@ -574,8 +574,8 @@ by file descriptors. .. function:: write(fd, str) - Write the string *str* to file descriptor *fd*. Return the number of bytes - actually written. Availability: Unix, Windows. + Write the bytestring in *str* to file descriptor *fd*. Return the number of + bytes actually written. Availability: Unix, Windows. .. note::