Wrong types in ctypes structures
Discussions on Python.org
Wrong types in ctypes structures
Hi. I am trying to generate some structures using ctypes. The integer fields embedded in structures appear to get the wrong type when the structure is instantiated. It creates problems when I try to use the structures, since types are not as expected. I assume that I am doing something wrong, since this appears to be some basic functionality that doesn’t work. I have made the following code to demonstrate the problem: from ctypes import * class TestType(Structure): _fields_ = [ ("a", c_i...
0 comments
No comments yet.