Making immutable instances

Paul Rubin http
Thu Dec 1 19:52:44 CET 2005

Mike Meyer <mwm at> writes:
> Lots of people seem to want immutable instances. Nobody seems to have
> a use case for them.

What is the use case for immutable strings?  Why shouldn't strings be
mutable like they are in Scheme?

Generally if I know I don't plan to mutate something, I'd want to make
it immutable so the runtime system can notice if I make an error.
It's like an "assert" statement spread through the whole program.

More information about the Python-list mailing list