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
b5dc3dcb
Commit
b5dc3dcb
authored
Sep 24, 2014
by
Berker Peksag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21860: Correct docstrings of FileIO.seek() and FileIO.truncate() methods.
Patch by Terry Chia.
parent
22ee4c47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Misc/ACKS
Misc/ACKS
+1
-0
Modules/_io/fileio.c
Modules/_io/fileio.c
+5
-3
No files found.
Misc/ACKS
View file @
b5dc3dcb
...
...
@@ -233,6 +233,7 @@ Nicolas Chauvat
Jerry Chen
Michael Chermside
Ingrid Cheung
Terry Chia
Albert Chin-A-Young
Adal Chiriliuc
Matt Chisholm
...
...
Modules/_io/fileio.c
View file @
b5dc3dcb
...
...
@@ -980,7 +980,8 @@ PyDoc_STRVAR(fileno_doc,
"This is needed for lower-level file interfaces, such the fcntl module."
);
PyDoc_STRVAR
(
seek_doc
,
"seek(offset: int[, whence: int]) -> None. Move to new file position.
\n
"
"seek(offset: int[, whence: int]) -> int. Move to new file position
\n
"
"and return the file position.
\n
"
"
\n
"
"Argument offset is a byte count. Optional argument whence defaults to
\n
"
"0 (offset from start of file, offset should be >= 0); other values are 1
\n
"
...
...
@@ -992,9 +993,10 @@ PyDoc_STRVAR(seek_doc,
#ifdef HAVE_FTRUNCATE
PyDoc_STRVAR
(
truncate_doc
,
"truncate([size: int]) -> None. Truncate the file to at most size bytes.
\n
"
"truncate([size: int]) -> int. Truncate the file to at most size bytes and
\n
"
"return the truncated size.
\n
"
"
\n
"
"Size defaults to the current file position, as returned by tell()."
"Size defaults to the current file position, as returned by tell().
\n
"
"The current file position is changed to the value of size."
);
#endif
...
...
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