[Python-3000] Nix dict.copy()

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Feb 11 05:23:26 CET 2008


Aahz wrote:
> On Mon, Feb 11, 2008, Greg Ewing wrote:
> 
>>There are bound to be things that you *don't* want to copy from
>>the original order, e.g. the order ID, the date...
> 
> Certainly -- that's why __copy__() exists, right?

Yes, but then I don't see the advantage over just
giving the object a copy() method and calling it
directly.

In other words, I see little benefit in having
copy() be a generic function.

-- 
Greg




More information about the Python-3000 mailing list