Hacker News new | ask | show | jobs
by DonHopkins 2831 days ago

    >>> s = 'foobar'
    >>> s[1:2] = 'xxx'
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: 'str' object does not support item assignment
Dammit Python! Immutable strings.