How can you copy (clone) a string?

Piet van Oostrum piet at cs.uu.nl
Sun Oct 8 08:41:42 EDT 2000


>>>>> aahz at panix.com (Aahz Maruch) (AM) writes:

AM> Because it's normally considered immutable, and here you're using it in
AM> a mutable way.  I just don't think it's Pythonic.

It is not only normally considered immutable, it IS immutable, So you
cannot use it in a mutable way.
I am just using it to implement a linked list. Nothing wrong with that.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list