Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b90be69

Browse files
committed
#6586: fix return/argument type doc for os.read() and os.write().
1 parent e5e3f91 commit b90be69

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/os.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ by file descriptors.
540540

541541
.. function:: read(fd, n)
542542

543-
Read at most *n* bytes from file descriptor *fd*. Return a string containing the
543+
Read at most *n* bytes from file descriptor *fd*. Return a bytestring containing the
544544
bytes read. If the end of the file referred to by *fd* has been reached, an
545-
empty string is returned. Availability: Unix, Windows.
545+
empty bytes object is returned. Availability: Unix, Windows.
546546

547547
.. note::
548548

@@ -574,8 +574,8 @@ by file descriptors.
574574

575575
.. function:: write(fd, str)
576576

577-
Write the string *str* to file descriptor *fd*. Return the number of bytes
578-
actually written. Availability: Unix, Windows.
577+
Write the bytestring in *str* to file descriptor *fd*. Return the number of
578+
bytes actually written. Availability: Unix, Windows.
579579

580580
.. note::
581581

0 commit comments

Comments
 (0)