def set_exception(self, exc):
    if self.is_iterator():
        self.get().throw(exc)
    else:
        super(RemoteResult, self).set_exception(exc)
def set_exception(self, exc):
    if self.is_iterator():
        self.get().throw(exc)
    else:
        super(RemoteResult, self).set_exception(exc)