mirror of
https://github.com/python/cpython.git
synced 2025-11-13 23:46:24 +00:00
Issue #13530: Document os.lseek() result
Patch written by Jérémy Anger.
This commit is contained in:
parent
136ea49b39
commit
e83f899364
3 changed files with 4 additions and 2 deletions
|
|
@ -706,7 +706,7 @@ as internal buffering of data.
|
||||||
by *how*: :const:`SEEK_SET` or ``0`` to set the position relative to the
|
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
|
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
|
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.
|
Availability: Unix, Windows.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ John Anderson
|
||||||
Erik Andersén
|
Erik Andersén
|
||||||
Oliver Andrich
|
Oliver Andrich
|
||||||
Ross Andrus
|
Ross Andrus
|
||||||
|
Jérémy Anger
|
||||||
Jon Anglin
|
Jon Anglin
|
||||||
Éric Araujo
|
Éric Araujo
|
||||||
Alicia Arlen
|
Alicia Arlen
|
||||||
|
|
|
||||||
|
|
@ -5687,7 +5687,8 @@ posix_dup2(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
PyDoc_STRVAR(posix_lseek__doc__,
|
PyDoc_STRVAR(posix_lseek__doc__,
|
||||||
"lseek(fd, pos, how) -> newpos\n\n\
|
"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 *
|
static PyObject *
|
||||||
posix_lseek(PyObject *self, PyObject *args)
|
posix_lseek(PyObject *self, PyObject *args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue