diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-07-11 02:43:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-11 02:43:04 (GMT) |
commit | 2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6 (patch) | |
tree | a0103e0311c115eb246ce94403bf3e484695c2fc | |
parent | b64c2c66e5cfe6d138b342ee58ee3b13a8d7ef16 (diff) | |
download | cpython-2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6.zip cpython-2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6.tar.gz cpython-2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6.tar.bz2 |
Document default parameter of .seek() in the signature. (GH-14691)
-rw-r--r-- | Doc/library/io.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst index fce9a74..70e0115 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 |