[Python-3000] Nix dict.copy()
larry at hastings.org
Mon Feb 11 08:55:43 CET 2008
Greg Ewing wrote:
> 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.
So true! Other candidates for not being generic functions: len(),
repr(), str(), int(), complex(), dict(), list(), set()...
So what decides whether something should be a generic function or a
commonly-defined member function? Personally I find "historical
accident" an unsatisfying answer.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-3000