[Python-checkins] r67580 - python/trunk/Doc/library/shutil.rst
georg.brandl
python-checkins at python.org
Fri Dec 5 16:32:29 CET 2008
Author: georg.brandl
Date: Fri Dec 5 16:32:29 2008
New Revision: 67580
Log:
#4478: document that copyfile() can raise Error.
Modified:
python/trunk/Doc/library/shutil.rst
Modified: python/trunk/Doc/library/shutil.rst
==============================================================================
--- python/trunk/Doc/library/shutil.rst (original)
+++ python/trunk/Doc/library/shutil.rst Fri Dec 5 16:32:29 2008
@@ -43,7 +43,8 @@
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
More information about the Python-checkins
mailing list