summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/os.rst2
-rw-r--r--Misc/ACKS1
-rw-r--r--Modules/posixmodule.c3
3 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 8632c4b..bb1ebd9 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -977,7 +977,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.
diff --git a/Misc/ACKS b/Misc/ACKS
index 43d746d..86bc512 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -32,6 +32,7 @@ John Anderson
Erik Andersén
Oliver Andrich
Ross Andrus
+Jérémy Anger
Jon Anglin
Éric Araujo
Alicia Arlen
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index acdc00c..ea3665d 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -6946,7 +6946,8 @@ posix_lockf(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)