[Python-3000] Nix dict.copy()
Phillip J. Eby
pje at telecommunity.com
Mon Feb 11 18:56:15 CET 2008
At 05:23 PM 2/11/2008 +1300, Greg Ewing wrote:
>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.
Well, in the current circumstance, it helps because third parties can
implement copying for things that didn't implement it themselves.
More information about the Python-3000
mailing list