@_FFI.callback(u'Value(ExternContext*, Value*)')
def extern_clone_val(context_handle, val):
 c = _FFI.from_handle(context_handle)
 item = c.from_value(val)
 return c.to_value(item, type_id=val.type_id)

@ _FFI . callback ( u'Value(ExternContext*, Value*)' ) def extern_clone_val ( context_handle , val ) : c = _FFI . from_handle ( context_handle ) item = c . from_value ( val ) return c . to_value ( item , type_id = val . type_id )
clone the given value .