Why are strings immutable?

Paul Rubin http
Mon Aug 23 17:16:31 EDT 2004


"Larry Bates" <lbates at swamisoft.com> writes:
> Think about it.  Since strings occupy a fixed
> number of bytes in memory, a mutable string would
> just be a linked list of strings.

Eh?  It would be treated just like Python currently treats lists.

In fact, array('B') does just about exactly what Brent is asking for.



More information about the Python-list mailing list