Skip to content

Commit

Permalink
Issue python#13530: Document os.lseek() result
Browse files Browse the repository at this point in the history
Patch written by Jérémy Anger.
  • Loading branch information
Victor Stinner committed Dec 17, 2011
1 parent 136ea49 commit e83f899
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ as internal buffering of data.
by *how*: :const:`SEEK_SET` or ``0`` to set the position relative to the
beginning of the file; :const:`SEEK_CUR` or ``1`` to set it relative to the
current position; :const:`os.SEEK_END` or ``2`` to set it relative to the end of
the file.
the file. Return the new cursor position in bytes, starting from the beginning.

Availability: Unix, Windows.

Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ John Anderson
Erik Andersén
Oliver Andrich
Ross Andrus
Jérémy Anger
Jon Anglin
Éric Araujo
Alicia Arlen
Expand Down
3 changes: 2 additions & 1 deletion Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -5687,7 +5687,8 @@ posix_dup2(PyObject *self, PyObject *args)

PyDoc_STRVAR(posix_lseek__doc__,
"lseek(fd, pos, how) -> newpos\n\n\
Set the current position of a file descriptor.");
Set the current position of a file descriptor.\n\
Return the new cursor position in bytes, starting from the beginning.");

static PyObject *
posix_lseek(PyObject *self, PyObject *args)
Expand Down

0 comments on commit e83f899

Please sign in to comment.