Skip to content

Commit e46d62a

Browse files
committed
Docs: 'os.pwrite()' needs bytes, not strings
1 parent 2fe7b8c commit e46d62a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/os.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,10 +1044,10 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window
10441044
.. versionadded:: 3.3
10451045

10461046

1047-
.. function:: pwrite(fd, string, offset)
1047+
.. function:: pwrite(fd, str, offset)
10481048

1049-
Write *string* to a file descriptor, *fd*, from *offset*, leaving the file
1050-
offset unchanged.
1049+
Write *bytestring* to a file descriptor, *fd*, from *offset*,
1050+
leaving the file offset unchanged.
10511051

10521052
Availability: Unix.
10531053

0 commit comments

Comments
 (0)