diff options
author | Georg Brandl <georg@python.org> | 2008-12-05 15:32:29 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-12-05 15:32:29 (GMT) |
commit | 905e0f65ba0f740783ae1542b3dfdfdfc52f8ecf (patch) | |
tree | 3f28c6f55984b7927c6f0f8c983435ffc9d6f5a6 /Doc | |
parent | 9a053731458db4f8e4dad6e7f59a56c2ec58ac39 (diff) | |
download | cpython-905e0f65ba0f740783ae1542b3dfdfdfc52f8ecf.zip cpython-905e0f65ba0f740783ae1542b3dfdfdfc52f8ecf.tar.gz cpython-905e0f65ba0f740783ae1542b3dfdfdfc52f8ecf.tar.bz2 |
#4478: document that copyfile() can raise Error.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/shutil.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 944b9f1..b409bb7 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -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 |