class S(Structure):
    _fields_ = [('a', c_byte), ('b', c_int), ('c', c_float), ('d', c_double)]
s = S(1, 2, 3, 4.0)
for field_name, field_type in s._fields_:
    pass
Print all fields of ctypes "Structure" with introspection