changeset 1244:f29e998c77c9

Remove items from preprocessing pool when using them.
author Marcel Keller <mkeller@cs.au.dk>
date Fri, 11 Sep 2009 19:09:31 +0200
parents 7eb99c27a46e
children be9c8eb7b4d0
files viff/runtime.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/runtime.py	Thu Sep 10 18:45:15 2009 +0200
+++ b/viff/runtime.py	Fri Sep 11 19:09:31 2009 +0200
@@ -446,7 +446,7 @@
         def preprocess_wrapper(self, *args, **kwargs):
             pc = tuple(self.program_counter)
             try:
-                return self._pool[pc]
+                return self._pool.pop(pc)
             except KeyError:
                 key = (generator, args)
                 pcs = self._needed_data.setdefault(key, [])