def get_assorted_primitives_f9(cself): try: with CPyBoxedI8.fromPyOpt(CPyRecord.toPy(None, cself).o_eight) as py_obj: return py_obj.release_djinni_boxed() except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def python_create_assorted_primitives(b,eight,sixteen,thirtytwo,sixtyfour,fthirtytwo,fsixtyfour,o_b,o_eight,o_sixteen,o_thirtytwo,o_sixtyfour,o_fthirtytwo,o_fsixtyfour): py_rec = AssortedPrimitives( CPyPrimitive.toPy(b), CPyPrimitive.toPy(eight), CPyPrimitive.toPy(sixteen), CPyPrimitive.toPy(thirtytwo), CPyPrimitive.toPy(sixtyfour), CPyPrimitive.toPy(fthirtytwo), CPyPrimitive.toPy(fsixtyfour), CPyBoxedBool.toPyOpt(o_b), CPyBoxedI8.toPyOpt(o_eight), CPyBoxedI16.toPyOpt(o_sixteen), CPyBoxedI32.toPyOpt(o_thirtytwo), CPyBoxedI64.toPyOpt(o_sixtyfour), CPyBoxedF32.toPyOpt(o_fthirtytwo), CPyBoxedF64.toPyOpt(o_fsixtyfour)) return CPyRecord.fromPy(AssortedPrimitives.c_data_set, py_rec) #to do: can be optional?