Python String Immutability Broken!
Patrick Maupin
pmaupin at gmail.com
Sun Aug 24 22:41:50 EDT 2008
On Aug 24, 8:49 pm, "Hendrik van Rooyen" <m... at microcorp.co.za> wrote:
> (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?
More information about the Python-list
mailing list