Document default parameter of .seek() in the signature. (GH-14691)

(cherry picked from commit 2a3d4d9c53)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
This commit is contained in:
Miss Islington (bot) 2019-07-10 19:49:49 -07:00 committed by GitHub
parent b82188d9ba
commit aca8297763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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