[Python-3000] Nix dict.copy()

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 12 23:05:10 CET 2008


Raymond Hettinger wrote:
> The part I'm not following in this paragraph is how a d.copy()
> method is any different from the d.__copy__() method that
> is called by the copy() function.  Both share the same underlying
> implementation and both have the same effects when overridden.

Having it a function/special method pair appears to make a
strong statement that it's a very important operation that
a large number of types ought to implement. As Guido said,
it's not really a generic enough operation to warrant that.

--
Greg


More information about the Python-3000 mailing list