Re: Python String Immutability Broken!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel Genellina

    Re: Python String Immutability Broken!

    En Mon, 25 Aug 2008 17:31:22 -0300, Hendrik van Rooyen <mail@microcorp .co.zaescribió:
    Patrick Maupin <pmau....ail.co mwrote:
    >
    >>But let me get this straight: Are you just complaining that if you
    >>pass a string to an arbitrary C function using ctypes, that that
    >>arbitrary function can modify the string?
    >
    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.
    To avoid altering the equilibrium of the whole universe, use ctypes.create_s tring_buffer:
    Gate is a leading provider of web hosting, domain names, exchange hosting and virtual private servers.


    --
    Gabriel Genellina

Working...