From 66af5f12a8284c82bf5023e53b2e56c5204b9c8e 2012-06-12 03:05:59 From: MinRK Date: 2012-06-12 03:05:59 Subject: [PATCH] View no longer has separate results dict Only makes it harder to cleanup cache, serves no purpose. --- diff --git a/IPython/parallel/client/view.py b/IPython/parallel/client/view.py index c4f3d12..5d047da 100644 --- a/IPython/parallel/client/view.py +++ b/IPython/parallel/client/view.py @@ -60,8 +60,6 @@ def sync_results(f, self, *args, **kwargs): delta = self.outstanding.difference(self.client.outstanding) completed = self.outstanding.intersection(delta) self.outstanding = self.outstanding.difference(completed) - for msg_id in completed: - self.results[msg_id] = self.client.results[msg_id] return ret @decorator @@ -122,6 +120,7 @@ class View(HasTraits): def __init__(self, client=None, socket=None, **flags): super(View, self).__init__(client=client, _socket=socket) + self.results = client.results self.block = client.block self.set_flags(**flags)