def f(i): d = {i + .0: 5, i + .5: 6} total = 0 for k, v, h in iteritems_with_hash(d): total += k * h * v total -= (i + 0.0) * compute_hash(i + 0.0) * 5 total -= (i + 0.5) * compute_hash(i + 0.5) * 6 return total
def getiteritems_with_hash(self, w_dict): return objectmodel.iteritems_with_hash(self.unerase(w_dict.dstorage))
def getiteritems_with_hash(self, w_dict): return iteritems_with_hash(self.unerase(w_dict.dstorage).dict_w)