def extern_project_ignoring_type(self, context_handle, val, field_str_ptr, field_str_len):
    """Given a Handle for `obj`, and a field name, project the field as a new Handle."""
    c = self._ffi.from_handle(context_handle)
    obj = c.from_value(val[0])
    field_name = self.to_py_str(field_str_ptr, field_str_len)
    projected = getattr(obj, field_name)

    return c.to_value(projected)
def extern_project_ignoring_type ( self , context_handle , val , field_str_ptr , field_str_len ) : c = self . _ffi . from_handle ( context_handle ) obj = c . from_value ( val [ 0 ] ) field_name = self . to_py_str ( field_str_ptr , field_str_len ) projected = getattr ( obj , field_name ) return c . to_value ( projected )
Given a Handle for `obj`, and a field name, project the field as a new Handle.