[Python-3000] Nix dict.copy()
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Feb 11 01:54:21 CET 2008
Paul Moore wrote:
> Given the above, I see no case where I'd want to use dict.copy(). So
> I'm in favour of removing it.
Personally I don't think I would even notice if the entire
contents of the copy module disappeared. I've never used
either form of generic copying. In the rare cases when I
do want to copy something, I know what type I'm dealing
with and have specific ideas on how to copy it, so I
write code accordingly.
Generic copying in Python seems like an anti-pattern to
me, and not something that should be encouraged.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiem! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Python-3000
mailing list