Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-107801: Improve the docs of the SEEK_* constants
  • Loading branch information
erlend-aasland committed Aug 17, 2023
commit abce2cc45a479d342fd907a497bf9e77e79379c5
11 changes: 9 additions & 2 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,15 @@ as internal buffering of data.
SEEK_CUR
SEEK_END

Parameters to the :func:`lseek` function. Their values are 0, 1, and 2,
respectively.
Parameters to the :func:`lseek` function and the :meth:`~io.IOBase.seek`
method on file object, for whence to adjust the file position indicator.
Comment thread
AA-Turner marked this conversation as resolved.
Outdated

:const:`SEEK_SET`
Adjust the file position relative to the beginning of the file.
:const:`SEEK_CUR`
Adjust the file position relative to the current file position.
:const:`SEEK_END`
Adjust the file position relative to the end of the file.


.. data:: SEEK_HOLE
Expand Down