def METHOD_NAME(self):
    if self.exc is not None:
        to_raise = self.exc
        self.exc = None
        raise to_raise
    elif self.to_return is not None:
        to_return = self.to_return
        self.to_return = None
        return to_return
    else:
        assert False, "should not get here"