diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-31 15:45:46 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-31 15:45:46 (GMT) |
commit | 578a3f9638a28b2969d78265037cb09cf8cfbce2 (patch) | |
tree | 3d8bfe916e1457a812a79c853fc6d538d45c6f4a | |
parent | 7e018909862a3fe6c571bbb7143f4ffb18ae834c (diff) | |
download | cpython-578a3f9638a28b2969d78265037cb09cf8cfbce2.zip cpython-578a3f9638a28b2969d78265037cb09cf8cfbce2.tar.gz cpython-578a3f9638a28b2969d78265037cb09cf8cfbce2.tar.bz2 |
Moshe Zadka <mzadka@geocities.com>:
Document new method in shutil (copyfileobj).
Minor clarification by Fred.
-rw-r--r-- | Doc/lib/libshutil.tex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/lib/libshutil.tex b/Doc/lib/libshutil.tex index 5da3a0e..ad96bd3 100644 --- a/Doc/lib/libshutil.tex +++ b/Doc/lib/libshutil.tex @@ -23,6 +23,15 @@ file type and creator codes will not be correct. it will be replaced, otherwise it will be created. \end{funcdesc} +\begin{funcdesc}{copyfileobj}{fsrc, fdst\optional{, length}} + Copy the contents of the file-like object \var{fsrc} to the + file-like object \var{fdst}. The integer \var{length}, if given, + is the buffer size. In particular, a negative \var{length} value + means to copy the data without looping over the source data in + chunks; by default the data is read in chunks to avoid uncontrolled + memory consumption. +\end{funcdesc} + \begin{funcdesc}{copymode}{src, dst} Copy the permission bits from \var{src} to \var{dst}. The file contents, owner, and group are unaffected. |