Python String Immutability Broken!
ken at seehart.com
Mon Aug 25 12:54:50 CEST 2008
Hendrik van Rooyen wrote:
> Actually, I am not complaining - I am asking for advice on the side
> effects of what I am doing, which is replacing a bunch of bits
> in what is essentially an output bit field with the corresponding
> input bits at the same addresses read back from a simulated i/o
> bus structure. And I would also like to know if there is a better
> way of doing this.
Yes, there is a better way. Use a character array instead of a string.
More information about the Python-list