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
0e8e78e1
Commit
0e8e78e1
authored
Sep 11, 2015
by
Martin Panter
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25030: Merge seek() doc fixes from 3.4 into 3.5
parents
b6855150
db4220ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Doc/library/io.rst
Doc/library/io.rst
+7
-6
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/io.rst
View file @
0e8e78e1
...
...
@@ -301,11 +301,11 @@ 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=SEEK_SET
)
.. method:: seek(offset
[, whence]
)
Change the stream position to the given byte *offset*. *offset* is
interpreted relative to the position indicated by *whence*.
Values for
*whence* are:
interpreted relative to the position indicated by *whence*.
The default
value for *whence* is :data:`SEEK_SET`. Values for
*whence* are:
* :data:`SEEK_SET` or ``0`` -- start of the stream (the default);
*offset* should be zero or positive
...
...
@@ -783,10 +783,11 @@ Text I/O
If *size* is specified, at most *size* characters will be read.
.. method:: seek(offset
, whence=SEEK_SET
)
.. method:: seek(offset
[, whence]
)
Change the stream position to the given *offset*. Behaviour depends
on the *whence* parameter:
Change the stream position to the given *offset*. Behaviour depends on
the *whence* parameter. The default value for *whence* is
:data:`SEEK_SET`.
* :data:`SEEK_SET` or ``0``: seek from the start of the stream
(the default); *offset* must either be a number returned by
...
...
Misc/ACKS
View file @
0e8e78e1
...
...
@@ -1312,6 +1312,7 @@ Alexander Shigin
Pete Shinners
Michael Shiplett
John W. Shipman
Shiyao Ma
Alex Shkop
Joel Shprentz
Yue Shuaijie
...
...
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