]> granicus.if.org Git - python/commitdiff
Issue #13530: Document os.lseek() result
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 17 Dec 2011 22:15:09 +0000 (23:15 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 17 Dec 2011 22:15:09 +0000 (23:15 +0100)
Patch written by Jérémy Anger.

Doc/library/os.rst
Misc/ACKS
Modules/posixmodule.c

index 767c40f39aad09612ec645eb140084434eb16b24..df9a6b6602b148f34a1420f1c9e536a11434b1c7 100644 (file)
@@ -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.
 
index 0f921658d6678ea9e0c89b4c91406781cd03d3c7..24923da367bb84e9fe62540531459524d57d618b 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -30,6 +30,7 @@ John Anderson
 Erik Andersén
 Oliver Andrich
 Ross Andrus
+Jérémy Anger
 Jon Anglin
 Éric Araujo
 Alicia Arlen
index 66cd153be3e57c029921b74c9529386d3ad6df18..673877a7b067847868f958b1b23c65a308b94560 100644 (file)
@@ -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)