[Python-Dev] re: Tutorial: Brief Introduction to the Standard Libary

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Wed Dec 3 23:32:25 EST 2003

> From: Arthur
> What is fundamentally wrong with copy(list) as an alternative 
> to list[:]?  

Well, it's slower ... it involves a Python function call and python code, whereas list[:] is all C.

Of course, I didn't say it's a *lot* slower ... the actual copying is likely to take longer.

However, I have to agree that I've almost never used copy or deepcopy.

Tim Delaney

More information about the Python-Dev mailing list