On Thu, Jul 16, 2009 at 11:22 AM, Gregor Lingl<[email protected]> wrote:
> That's simply not true in Python. Try it out! > >>>> word = "cat" >>>> word[1] = "_" > Traceback (most recent call last): > File "<pyshell#1>", line 1, in <module> > word[1] = "_" > TypeError: 'str' object does not support item assignment And the reason for that, undoubtedly, is that strings are immutable. -- André Engels, [email protected] _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
