当前位置: 首页>>代码示例>>Python>>正文


Python CPyObject.fromPy方法代码示例

本文整理汇总了Python中djinni.pycffi_marshal.CPyObject.fromPy方法的典型用法代码示例。如果您正苦于以下问题:Python CPyObject.fromPy方法的具体用法?Python CPyObject.fromPy怎么用?Python CPyObject.fromPy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在djinni.pycffi_marshal.CPyObject的用法示例。


在下文中一共展示了CPyObject.fromPy方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: get_foo_containers_record_f6

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def get_foo_containers_record_f6(cself):
     try:
         _ret = CPyObject.fromPy(ListRecordFooSomeOtherRecordHelper.c_data_set, CPyRecord.toPy(None, cself).list_record)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:10,代码来源:foo_containers_record_helper.py

示例2: get_nested_collection_f1

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def get_nested_collection_f1(cself):
     try:
         _ret = CPyObject.fromPy(ListSetStringHelper.c_data_set, CPyRecord.toPy(None, cself).set_list)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:10,代码来源:nested_collection_helper.py

示例3: get_foo_containers_record_f5

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def get_foo_containers_record_f5(cself):
     try:
         _ret = CPyObject.fromPy(ListListStringHelper.c_data_set, CPyRecord.toPy(None, cself).list_list_string)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:10,代码来源:foo_containers_record_helper.py

示例4: get_foo_containers_record_f4

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def get_foo_containers_record_f4(cself):
     try:
         _ret = CPyObject.fromPy(ListOptionalBinaryHelper.c_data_set, CPyRecord.toPy(None, cself).list_optional_binary)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:10,代码来源:foo_containers_record_helper.py

示例5: get_primitive_list_f1

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def get_primitive_list_f1(cself):
     try:
         _ret = CPyObject.fromPy(ListInt64THelper.c_data_set, CPyRecord.toPy(None, cself).list)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:10,代码来源:primitive_list_helper.py

示例6: __get_elem

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def __get_elem(cself, index):
     try:
         _ret = CPyObject.fromPy(ListStringHelper.c_data_set, CPyObject.toPy(None, cself)[index])
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:10,代码来源:dh__list_list_string.py

示例7: __get_value

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def __get_value(cself, key):
     pyKey = CPyPrimitive.toPy(key)
     assert pyKey is not None
     try:
         _ret = CPyObject.fromPy(ListDateHelper.c_data_set, CPyObjectProxy.toPyObj(None, cself)[pyKey])
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:12,代码来源:dh__map_int8_t_list_date.py

示例8: set_list_binary

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def set_list_binary(self, lb):
     lib.cw__foo_containers_interface_set_list_binary(self._cpp_impl, CPyObject.fromPy(ListBinaryHelper.c_data_set, lb))
     CPyException.toPyCheckAndRaise(ffi.NULL)
开发者ID:trafi,项目名称:djinni,代码行数:5,代码来源:foo_containers_interface.py

示例9: set_list_record

# 需要导入模块: from djinni.pycffi_marshal import CPyObject [as 别名]
# 或者: from djinni.pycffi_marshal.CPyObject import fromPy [as 别名]
 def set_list_record(self, lr):
     lib.cw__foo_containers_interface_set_list_record(self._cpp_impl, CPyObject.fromPy(ListRecordFooSomeOtherRecordHelper.c_data_set, lr))
     CPyException.toPyCheckAndRaise(ffi.NULL)
开发者ID:trafi,项目名称:djinni,代码行数:5,代码来源:foo_containers_interface.py


注:本文中的djinni.pycffi_marshal.CPyObject.fromPy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。