[Python-3000] Nix dict.copy()

Raymond Hettinger python at rcn.com
Sun Feb 10 20:55:45 CET 2008


[Phillip Eby]
> I'm not fond of this idea. dict.copy() is polymorphic -- but dict(d) is...

Can't say dict.copy() is really polymorphic if only one other class defines the method.

The __copy__ method is more common.  The only wrinkle is that the copy() function isn't a builtin.


Raymond


More information about the Python-3000 mailing list