mirror of
https://github.com/python/cpython.git
synced 2025-12-10 19:10:59 +00:00
Explain what os.read() returns at end of file.
This closes SF bug #550409. Applying to release21-maint & release22-maint.
This commit is contained in:
parent
7938fab285
commit
a65375c3e3
1 changed files with 3 additions and 1 deletions
|
|
@ -471,7 +471,9 @@ Availability: \UNIX, Windows.
|
||||||
|
|
||||||
\begin{funcdesc}{read}{fd, n}
|
\begin{funcdesc}{read}{fd, n}
|
||||||
Read at most \var{n} bytes from file descriptor \var{fd}.
|
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.
|
Availability: Macintosh, \UNIX, Windows.
|
||||||
|
|
||||||
Note: this function is intended for low-level I/O and must be applied
|
Note: this function is intended for low-level I/O and must be applied
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue