示例#1
0
 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
示例#2
0
 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
示例#3
0
文件: celldict.py 项目: zcxowwww/pypy
 def getiteritems_with_hash(self, w_dict):
     return objectmodel.iteritems_with_hash(self.unerase(w_dict.dstorage))
示例#4
0
文件: celldict.py 项目: cimarieta/usp
 def getiteritems_with_hash(self, w_dict):
     return objectmodel.iteritems_with_hash(self.unerase(w_dict.dstorage))
示例#5
0
文件: classdict.py 项目: Mu-L/pypy
 def getiteritems_with_hash(self, w_dict):
     return iteritems_with_hash(self.unerase(w_dict.dstorage).dict_w)
示例#6
0
 def getiteritems_with_hash(self, w_dict):
     return iteritems_with_hash(self.unerase(w_dict.dstorage).dict_w)