def get_builtin_exception(self, Class): edata = self.translator.rtyper.exceptiondata bk = self.translator.annotator.bookkeeper error_def = bk.getuniqueclassdef(Class) error_ll_exc = edata.get_standard_ll_exc_instance( self.translator.rtyper, error_def) error_ll_exc_type = ll_inst_type(error_ll_exc) return error_ll_exc_type, error_ll_exc
def rpyexc_restore_exception(evalue): if evalue: exc_data.exc_type = ll_inst_type(evalue) exc_data.exc_value = evalue