How can you copy (clone) a string?

Tom nospam at nospam.com
Tue Oct 3 10:50:31 EDT 2000


"Fredrik Lundh" <effbot at telia.com> wrote in message
news:OTlC5.1601$d5.122828 at newsb.telia.net...
> Peter.Rupp at ual.com wrote:
> > I have a bonafide need to create copies of strings in a python program
> > (as opposed to a reference to the original).
>
> why?
>
> > Well, I really do have a need here ;-)
>
> trust me, you don't.  if you think you have, it's time
> to redesign your program.

Well, 'need' might not be the right word, and maybe it isn't correct Python
design, but I don't think we can say that there is no situation where one
might want to do this.

Tom.

> </F>
>





More information about the Python-list mailing list