On Jul 15, 3:06 pm, Ben Finney <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] writes:
> > I've heard that a 'str' object is immutable. But is there *any* way to
> > modify a string's internal value?
>
> If there were, it would not be immutable. The 'str' type has only
> immutable values.
>
> You could implement your own string type, and have it allow mutable
> values. You'd have to take care of creating those values explicitly,
> though.
>
You could write a C extension which modifies strings, but that would
be a Bad Idea.
--
http://mail.python.org/mailman/listinfo/python-list