def __python_next(cself):
     try:
         _ret = CPyPrimitive.fromPy(next(CPyObjectProxy.toPyIter(cself)))
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def __python_next(cself):
     try:
         with CPyString.fromPyOpt(next(CPyObjectProxy.toPyIter(cself))) as py_obj:
             return py_obj.release_djinni_string()
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def __python_next(cself):
     try:
         _ret= CPyEnum.fromPy(next(CPyObjectProxy.toPyIter(cself)))
         assert _ret.value != -1
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def __python_next(cself):
     try:
         with CPyString.fromPyOpt(next(
                 CPyObjectProxy.toPyIter(cself))) as py_obj:
             return py_obj.release_djinni_string()
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemple #5
0
 def __python_next(cself):
     try:
         _ret = ConflictHelper.fromPy(next(CPyObjectProxy.toPyIter(cself)))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemple #6
0
 def __next(cself):
     try:
         with CPyString.fromPy(next(
                 CPyObjectProxy.toPyIter(cself))) as py_obj:
             _ret = py_obj.release_djinni_string()
             assert _ret != ffi.NULL
             return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL