Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2a3d4d9c
Commit
2a3d4d9c
authored
Jul 10, 2019
by
Benjamin Peterson
Committed by
GitHub
Jul 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document default parameter of .seek() in the signature. (GH-14691)
parent
b64c2c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/io.rst
Doc/library/io.rst
+2
-2
No files found.
Doc/library/io.rst
View file @
2a3d4d9c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment