From b5379722f18c1ee9cd19f7bb0517efb0a3f954be Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 10 Jul 2019 19:36:12 -0700 Subject: [PATCH] Document default parameter of .seek() in the signature. --- Doc/library/io.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/io.rst b/Doc/library/io.rst index fce9a747fd32ad..70e01153d41966 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -327,7 +327,7 @@ I/O Base Classes Note that it's already possible to iterate on file objects using ``for line in file: ...`` without calling ``file.readlines()``. - .. method:: seek(offset[, whence]) + .. method:: seek(offset, whence=SEEK_SET) Change the stream position to the given byte *offset*. *offset* is interpreted relative to the position indicated by *whence*. The default @@ -831,7 +831,7 @@ Text I/O If *size* is specified, at most *size* characters will be read. - .. method:: seek(offset[, whence]) + .. method:: seek(offset, whence=SEEK_SET) Change the stream position to the given *offset*. Behaviour depends on the *whence* parameter. The default value for *whence* is