Skip to content

Commit 2a3d4d9

Browse files
authored
Document default parameter of .seek() in the signature. (GH-14691)
1 parent b64c2c6 commit 2a3d4d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/io.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ I/O Base Classes
327327
Note that it's already possible to iterate on file objects using ``for
328328
line in file: ...`` without calling ``file.readlines()``.
329329

330-
.. method:: seek(offset[, whence])
330+
.. method:: seek(offset, whence=SEEK_SET)
331331

332332
Change the stream position to the given byte *offset*. *offset* is
333333
interpreted relative to the position indicated by *whence*. The default
@@ -831,7 +831,7 @@ Text I/O
831831

832832
If *size* is specified, at most *size* characters will be read.
833833

834-
.. method:: seek(offset[, whence])
834+
.. method:: seek(offset, whence=SEEK_SET)
835835

836836
Change the stream position to the given *offset*. Behaviour depends on
837837
the *whence* parameter. The default value for *whence* is

0 commit comments

Comments
 (0)