mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Mark the 'whence' parameter of the file object's seek() method as optional;
it's already decribed that way in the description.
This commit is contained in:
parent
01852838f3
commit
e5836d9811
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ descriptors, e.g. module \code{fcntl} or \code{os.read()} and friends.
|
|||
internal buffer size) are read.
|
||||
\end{methoddesc}
|
||||
|
||||
\begin{methoddesc}[file]{seek}{offset, whence}
|
||||
\begin{methoddesc}[file]{seek}{offset\optional{, whence}}
|
||||
Set the file's current position, like \code{stdio}'s \cfunction{fseek()}.
|
||||
The \var{whence} argument is optional and defaults to \code{0}
|
||||
(absolute file positioning); other values are \code{1} (seek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue