示例#1
0
class BuiltinCode4(BuiltinCode):
    def fastcall_4(self, space, func, w1, w2, w3, w4):
        self = hint(self, deepfreeze=True)
        try:
            w_result = self.fastfunc_4(space, w1, w2, w3, w4)
        except KeyboardInterrupt:
            raise OperationError(space.w_KeyboardInterrupt, space.w_None)
        except MemoryError:
            raise OperationError(space.w_MemoryError, space.w_None)
        except RuntimeError, e:
            raise OperationError(space.w_RuntimeError,
                                 space.wrap("internal error: " + str(e)))
        except DescrMismatch, e:
            return w1.descr_call_mismatch(space, self.descrmismatch_op,
                                          self.descr_reqcls,
                                          Arguments(space, [w1, w2, w3, w4]))