[issue12741] Add function similar to shutil.move that does not overwrite

Éric Araujo report at bugs.python.org
Fri Aug 12 19:39:32 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

About new function vs. new argument: this could be asked on python-dev (or on the core-mentorship list if you prefer an environment guaranteed friendly).  If you look at copy and copy2, you’ll see that adding a function was chosen, but the names are not helpful at all.  In more recent shutil development, arguments like copy_function and ignore (on copytree) were added to let people customize behavior without rewriting all the function logic.  Guido van Rossum has a rule about not adding an argument when the value is always a constant, preferring another function instead, but I’m not sure I remember it clearly, so asking for other developers’ thoughts would be good.

----------
nosy: +eric.araujo
stage:  -> needs patch
title: Implementation of shutil.move -> Add function similar to shutil.move that does not overwrite
type: behavior -> feature request
versions: +Python 3.3 -Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12741>
_______________________________________


More information about the Python-bugs-list mailing list