On Aug 24, 8:49 pm, "Hendrik van Rooyen" <m...@microcorp .co.zawrote:
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?
(a lot of stuff related to using a string with a C library via ctypes)
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?