diff options
Diffstat (limited to 'Tools/pybench/Lookups.py')
-rw-r--r-- | Tools/pybench/Lookups.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Tools/pybench/Lookups.py b/Tools/pybench/Lookups.py index e454a00..5bf9e76 100644 --- a/Tools/pybench/Lookups.py +++ b/Tools/pybench/Lookups.py @@ -11,7 +11,7 @@ class SpecialClassAttribute(Test): class c: pass - for i in xrange(self.rounds): + for i in range(self.rounds): c.__a = 2 c.__b = 3 @@ -178,7 +178,7 @@ class SpecialClassAttribute(Test): class c: pass - for i in xrange(self.rounds): + for i in range(self.rounds): pass class NormalClassAttribute(Test): @@ -192,7 +192,7 @@ class NormalClassAttribute(Test): class c: pass - for i in xrange(self.rounds): + for i in range(self.rounds): c.a = 2 c.b = 3 @@ -364,7 +364,7 @@ class NormalClassAttribute(Test): class c: pass - for i in xrange(self.rounds): + for i in range(self.rounds): pass class SpecialInstanceAttribute(Test): @@ -379,7 +379,7 @@ class SpecialInstanceAttribute(Test): pass o = c() - for i in xrange(self.rounds): + for i in range(self.rounds): o.__a__ = 2 o.__b__ = 3 @@ -552,7 +552,7 @@ class SpecialInstanceAttribute(Test): pass o = c() - for i in xrange(self.rounds): + for i in range(self.rounds): pass class NormalInstanceAttribute(Test): @@ -567,7 +567,7 @@ class NormalInstanceAttribute(Test): pass o = c() - for i in xrange(self.rounds): + for i in range(self.rounds): o.a = 2 o.b = 3 @@ -740,7 +740,7 @@ class NormalInstanceAttribute(Test): pass o = c() - for i in xrange(self.rounds): + for i in range(self.rounds): pass class BuiltinMethodLookup(Test): @@ -754,7 +754,7 @@ class BuiltinMethodLookup(Test): l = [] d = {} - for i in xrange(self.rounds): + for i in range(self.rounds): l.append l.append @@ -941,5 +941,5 @@ class BuiltinMethodLookup(Test): l = [] d = {} - for i in xrange(self.rounds): + for i in range(self.rounds): pass |