sailfish.kernel.library.to_ctypes

sailfish.kernel.library.to_ctypes(args, spec)[source]

Coerce a sequence of values to their appropriate ctype.

The expected type is determined from the spec list.