function that modifies a string
Diez B. Roggisch
deets at nospam.web.de
Mon Jul 10 10:27:03 EDT 2006
> Of course, another right way would be to have mutable strings in Python.
> I understand why strings need to be immutable in order to work with dicts,
> but is there any reason why (hypothetical) mutable strings should be
> avoided in situations where they aren't needed as dictionary keys? Python
> has mutable lists and immutable tuples, mutable sets and immutable frozen
> sets, but no mutable string type.
What's wrong about arrays of chars?
Diez
More information about the Python-list
mailing list