Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down