How can you copy (clone) a string?
Greg Ewing
see at my.signature
Thu Oct 5 20:41:05 EDT 2000
piet at cs.uu.nl wrote:
>
> That will not help, as the strings will be garbage collected.
Well, keep them in a list or something. If the
strings are fairly big, the extra memory taken
up by the list won't make much difference.
Or chain them into a linked list using tuples.
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list