[Python-checkins] r80246 - python/branches/py3k/Doc/whatsnew/3.2.rst

tarek.ziade python-checkins at python.org
Tue Apr 20 11:13:23 CEST 2010


Author: tarek.ziade
Date: Tue Apr 20 11:13:23 2010
New Revision: 80246

Log:
added a note on shutil.copytree improvements

Modified:
   python/branches/py3k/Doc/whatsnew/3.2.rst

Modified: python/branches/py3k/Doc/whatsnew/3.2.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.2.rst	(original)
+++ python/branches/py3k/Doc/whatsnew/3.2.rst	Tue Apr 20 11:13:23 2010
@@ -85,6 +85,17 @@
   (Contributed by Georg Brandl and Mattias Brändström;
   `appspot issue 53094 <http://codereview.appspot.com/53094>`_.)
 
+* The :func:`shutil.copytree` function has two new options
+
+  * ignore_dangling_symlinks: when symlinks=false (meaning that the function
+    copy the file pointed by the symlink, not the symlink itself)
+    this option will silent the error thrown if the file doesn't exists.
+
+  * copy_function: a callable that will be used to copy files.
+    :func:`shutil.copy2` is used by default.
+
+  (Contributed by Tarek Ziade)
+
 Multi-threading
 ===============
 


More information about the Python-checkins mailing list