From 67503c5f1c39413465fc5fdc192eb0ff1b7334fe Mon Sep 17 00:00:00 2001 From: Jesus Cea <jcea@jcea.es> Date: Mon, 20 Oct 2014 16:18:24 +0200 Subject: [PATCH] Docs: 'os.pwrite()' needs bytes, not strings --- Doc/library/os.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0a59108b2c0..f217a36f4de 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1044,10 +1044,10 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ 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. -- 2.30.9