def __get_func(self, interp, r_func, fn, TYPE): if isinstance(r_func, MethodOfFrozenPBCRepr): obj = r_func.r_im_self.convert_const(fn.im_self) r_func, nimplicitarg = r_func.get_r_implfunc() else: obj = None callable = r_func.get_unique_llfn().value func_name, interp_fn = llinterp.wrap_callable(interp, callable, obj, None) return ootype.static_meth(TYPE, func_name, _callable=interp_fn)