Re: Python String Immutability Broken!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Patrick Maupin

    Re: Python String Immutability Broken!

    On Aug 24, 8:49 pm, "Hendrik van Rooyen" <m...@microcorp .co.zawrote:
    (a lot of stuff related to using a string with a C library via ctypes)
    Very entertaining.

    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?

    Because if you are, then I think you share a great deal of
    responsibility for the death of that string -- sending the poor thing
    to its grave through some unknown C function.

    What would you have ctypes do instead?
Working...