viff

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 diff
     1.1 --- a/viff/runtime.py	Thu Sep 10 18:45:15 2009 +0200
     1.2 +++ b/viff/runtime.py	Fri Sep 11 19:09:31 2009 +0200
     1.3 @@ -446,7 +446,7 @@
     1.4          def preprocess_wrapper(self, *args, **kwargs):
     1.5              pc = tuple(self.program_counter)
     1.6              try:
     1.7 -                return self._pool[pc]
     1.8 +                return self._pool.pop(pc)
     1.9              except KeyError:
    1.10                  key = (generator, args)
    1.11                  pcs = self._needed_data.setdefault(key, [])