Thomas Heller added the comment: Yes, I came up with a similar solution in the meantime; see the attached patch. Added file: http://bugs.python.org/file9176/ctypes-struct.patch __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1831> __________________________________