Mutate an integer array using ctypes?

Looks like you want the cast function: The cast function can be used to cast a ctypes instance into a pointer to a different ctypes data type. Cast takes two parameters, a ctypes object that is or can be converted to a pointer of some kind, and a ctypes pointer type. It returns an instance of the second argument, which references the same memory block as the first argument: >>> a = (c_byte * 4)() >>> a >>> cast(a, POINTER(c_int)).

Thanks Mark, your snippet was enough for me to figure out what the problem was, I'd omitted the parentheses from my array instantiation, which had triggered the type mismatch. – Andrew Walker Aug 25 '09 at 1:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions