

def _handle_execute_reply(self, msg):
    'Save the reply to an execute_request into our results.\n        \n        execute messages are never actually used. apply is used instead.\n        '
    parent = msg['parent_header']
    msg_id = parent['msg_id']
    if (msg_id not in self.outstanding):
        if (msg_id in self.history):
            print(('got stale result: %s' % msg_id))
        else:
            print(('got unknown result: %s' % msg_id))
    else:
        self.outstanding.remove(msg_id)
    self.results[msg_id] = self._unwrap_exception(msg['content'])

dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py Client._handle_execute_reply/original