when do two names cease to refer to the same string object?

John Salerno johnjsal at NOSPAMgmail.com
Thu Mar 2 23:14:57 EST 2006


Farshid Lashkari wrote:
> I asked a similar question a few weeks ago. I think the answers I got 
> will also answer your question as well. Here's a link to the thread:
> 
> http://groups.google.com/group/comp.lang.python/browse_thread/thread/2f6f1d399ba94a7b/f564a219ffe44149?lnk=st&rnum=1&hl=en#f564a219ffe44149
> 
> -Farshid

Thanks! Very interesting stuff. Seems like basically that sometimes 
strings are reused, and sometimes they are created anew. I also 
understand the point about not relying on the implementation, but like 
you I was just curious.  :)



More information about the Python-list mailing list