]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#4478: document that copyfile() can raise Error.
authorGeorg Brandl <georg@python.org>
Fri, 5 Dec 2008 15:32:29 +0000 (15:32 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 5 Dec 2008 15:32:29 +0000 (15:32 +0000)
Doc/library/shutil.rst

index 944b9f16107892d4b3ed055d382f85533026c099..b409bb739345090811ea63a7eb3600d2aa2abdb7 100644 (file)
@@ -43,7 +43,8 @@ copying and removal. For operations on individual files, see also the
 
    Copy the contents (no metadata) of the file named *src* to a file named *dst*.
    *dst* must be the complete target file name; look at :func:`copy` for a copy that
-   accepts a target directory path.
+   accepts a target directory path.  If *src* and *dst* are the same files,
+   :exc:`Error` is raised.
    The destination location must be writable; otherwise,  an :exc:`IOError` exception
    will be raised. If *dst* already exists, it will be replaced.   Special files
    such as character or block devices and pipes cannot be copied with this