import os, sys, imp, argparse
from collections import defaultdict
from hashlib import sha1
-from time import time
from path import path
import load, post
self.rules = ddict(Rule)
self.error = {}
+ self.time_step = 0
self.files = []
# interpretor needs a place for it's temporary files.
except (TypeError, ZeroDivisionError):
pass
- self.agenda[head] = time()
+ self.agenda[head] = self.time_step
+ self.time_step += 1
return self.go()
item.aggregator.dec(val, ruleix, variables)
else:
item.aggregator.inc(val, ruleix, variables)
- self.agenda[item] = time() # FIFO
+ self.agenda[item] = self.time_step
+ self.time_step += 1
def do(self, filename, initialize=True):
"""