Modify a string's value

Terry Reedy tjreedy at udel.edu
Tue Jul 15 16:50:30 EDT 2008



s0suk3 at gmail.com wrote:
> Hi everyone,
> 
> I've heard that a 'str' object is immutable. But is there *any* way to
> modify a string's internal value?

In 3.0, ascii chars and encoded unicode chars in general can be stored 
in a mutable bytearray.




More information about the Python-list mailing list