def multifield_to_list(self): end = lib.get_data_end(self._data) begin = lib.get_data_begin(self._data) multifield = lib.get_data_value(self._data) return [self.python_value(lib.get_multifield_type(multifield, i), lib.get_multifield_value(multifield, i)) for i in range(begin, end + 1)]
def value(self): """Return the DATA_OBJECT stored value.""" dtype = lib.get_data_type(self._data) dvalue = lib.get_data_value(self._data) if dvalue == ffi.NULL: return None return self.python_value(dtype, dvalue)