]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Explain what os.read() returns at end of file.
authorFred Drake <fdrake@acm.org>
Wed, 1 May 2002 03:33:02 +0000 (03:33 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 1 May 2002 03:33:02 +0000 (03:33 +0000)
This closes SF bug #550409.

Doc/lib/libos.tex

index ca9a206d854cf33c4da497b0216f78d2a29f3dc1..d40aa076b1fce31b370c83ff335cb6831b003c3c 100644 (file)
@@ -453,7 +453,9 @@ Availability: \UNIX{}, Windows.
 
 \begin{funcdesc}{read}{fd, n}
 Read at most \var{n} bytes from file descriptor \var{fd}.
-Return a string containing the bytes read.
+Return a string containing the bytes read.  If the end of the file
+referred to by \var{fd} has been reached, an empty string is
+returned.
 Availability: Macintosh, \UNIX{}, Windows.
 
 Note: this function is intended for low-level I/O and must be applied