Re: Python String Immutability Broken!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ken Seehart

    Re: Python String Immutability Broken!

    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.

    http://python.net/crew/theller/ctype...al.html#arrays
    ...
    - Ken

Working...