mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix pybench so it works -- Larry Hastings.
This commit is contained in:
parent
16be03e4a2
commit
5b787e8bc2
4 changed files with 41 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue