From: Jesus Cea Date: Mon, 20 Oct 2014 14:18:24 +0000 (+0200) Subject: Docs: 'os.pwrite()' needs bytes, not strings X-Git-Tag: v3.5.0a1~625^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67503c5f1c39413465fc5fdc192eb0ff1b7334fe;p=python Docs: 'os.pwrite()' needs bytes, not strings --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0a59108b2c..f217a36f4d 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1044,10 +1044,10 @@ or `the MSDN `_ on Window .. versionadded:: 3.3 -.. function:: pwrite(fd, string, offset) +.. function:: pwrite(fd, str, offset) - Write *string* to a file descriptor, *fd*, from *offset*, leaving the file - offset unchanged. + Write *bytestring* to a file descriptor, *fd*, from *offset*, + leaving the file offset unchanged. Availability: Unix.