@_FFI.callback(u'UTF8Buffer(ExternContext*, Value*)')
def extern_val_to_str(context_handle, val):
 c = _FFI.from_handle(context_handle)
 return c.utf8_buf(str(c.from_value(val)))

@ _FFI . callback ( u'UTF8Buffer(ExternContext*, Value*)' ) def extern_val_to_str ( context_handle , val ) : c = _FFI . from_handle ( context_handle ) return c . utf8_buf ( str ( c . from_value ( val ) ) )
given a value for obj .