Why doesn't deepcopy work on strings ?

Erik Max Francis max at alcyone.com
Sun Feb 23 22:29:48 EST 2003


Tony C wrote:

> Why doesn't deepcopy() on a string make a deep copy of that string ?

Why should it?  Strings are immutable.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ There's really nothing like it.
\__/ Sade Adu
    Bosskey.net: Unreal Tournament 2003 / http://www.bosskey.net/ut2k3/
 A personal guide to Unreal Tournament 2003.




More information about the Python-list mailing list