Patch #1669331: clarify shutil.copyfileobj() behavior wrt. file position.

This commit is contained in:
Georg Brandl 2007-03-07 09:34:45 +00:00
parent d0a962506b
commit f08c073ded
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ file type and creator codes will not be correct.
is the buffer size. In particular, a negative \var{length} value is the buffer size. In particular, a negative \var{length} value
means to copy the data without looping over the source data in means to copy the data without looping over the source data in
chunks; by default the data is read in chunks to avoid uncontrolled chunks; by default the data is read in chunks to avoid uncontrolled
memory consumption. memory consumption. Note that if the current file position of the
\var{fsrc} object is not 0, only the contents from the current file
position to the end of the file will be copied.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{copymode}{src, dst} \begin{funcdesc}{copymode}{src, dst}