Aside from negative indices, I'd also suggest a small (and rather
obvious) example for replacing a substring:
>>> s='spam'
>>> s=s[:1]+'xx'+s[3:]
>>> s
'sxxm'
>>>

- Michael

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to