Gerrit Holl wrote: ... > Try: s1[:] to copy a string. >>> x='ciao' >>> y=x[:] >>> x is y True >>> try as much as you will, Python is always allowed to optimize away copies when immutable objects are concerned, and will do so whenever its current implementation is clever enough;-). Alex