mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Moshe Zadka <mzadka@geocities.com>:
Document new method in shutil (copyfileobj). Minor clarification by Fred.
This commit is contained in:
parent
7e01890986
commit
578a3f9638
1 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,15 @@ file type and creator codes will not be correct.
|
||||||
it will be replaced, otherwise it will be created.
|
it will be replaced, otherwise it will be created.
|
||||||
\end{funcdesc}
|
\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}
|
\begin{funcdesc}{copymode}{src, dst}
|
||||||
Copy the permission bits from \var{src} to \var{dst}. The file
|
Copy the permission bits from \var{src} to \var{dst}. The file
|
||||||
contents, owner, and group are unaffected.
|
contents, owner, and group are unaffected.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue