Fix pybench so it works -- Larry Hastings.

This commit is contained in:
Guido van Rossum 2007-01-13 23:54:39 +00:00
parent 16be03e4a2
commit 5b787e8bc2
4 changed files with 41 additions and 39 deletions

View file

@ -351,7 +351,7 @@ class SimpleDictManipulation(Test):
def test(self):
d = {}
has_key = d.has_key
has_key = lambda key: key in d
for i in xrange(self.rounds):
@ -498,7 +498,7 @@ class SimpleDictManipulation(Test):
def calibrate(self):
d = {}
has_key = d.has_key
has_key = lambda key: key in d
for i in xrange(self.rounds):
pass