]> granicus.if.org Git - python/commitdiff
#13530: port to 2.7 branch (document what os.lseek returns).
authorGeorg Brandl <georg@python.org>
Tue, 11 Mar 2014 09:28:56 +0000 (10:28 +0100)
committerGeorg Brandl <georg@python.org>
Tue, 11 Mar 2014 09:28:56 +0000 (10:28 +0100)
Doc/library/os.rst
Modules/posixmodule.c

index 679cedb9479e41e358fe2fc421402c397acc3a25..fe030961aedfae7e487ef14208dc8fc7e74e0c39 100644 (file)
@@ -744,7 +744,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:`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 c1b300a42cd9f4836b3b0d449f0ad0957c9add12..21a6cef3f7903da301bcac3c0ac016fed8f358c2 100644 (file)
@@ -6667,7 +6667,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)