[Python-3000] Nix dict.copy()

Christian Heimes lists at cheimes.de
Sun Feb 10 21:49:03 CET 2008


Larry Hastings wrote:
> +1 for exactly the reasons cited.  I think copy() and deepcopy() should
> both be "essential" built-in functions.

I'm -0 on copy and -1 on deepcopy.

If you need a copy or a deepcopy of an object (except dicts, lists and
sets) you are most certainly using the wrong approach. Back when I was
learning Python over 5 years ago I was using copy and deepcopy often.
Nowadays I don't need the copy module anymore because I've learned how
to design software without the need for copies.

In my humble opinion the addition of copy to builtins leaves a bad mark.

Christian



More information about the Python-3000 mailing list