[Python-checkins] benchmarks: Fix pickle_list to regenerate a list of lists in Python 3.

alexandre.vassalotti python-checkins at python.org
Thu Apr 18 12:12:13 CEST 2013


http://hg.python.org/benchmarks/rev/7e31cf129cab
changeset:   199:7e31cf129cab
parent:      195:f4e99b589c5f
user:        Alexandre Vassalotti <alexandre at peadrop.com>
date:        Thu Apr 18 03:08:56 2013 -0700
summary:
  Fix pickle_list to regenerate a list of lists in Python 3.

files:
  performance/bm_pickle.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/performance/bm_pickle.py b/performance/bm_pickle.py
--- a/performance/bm_pickle.py
+++ b/performance/bm_pickle.py
@@ -242,7 +242,7 @@
     return times
 
 
-LIST = [[range(10), range(10)] for _ in xrange(10)]
+LIST = [[list(range(10)), list(range(10))] for _ in xrange(10)]
 
 
 def test_pickle_list(loops, pickle, options):

-- 
Repository URL: http://hg.python.org/benchmarks


More information about the Python-checkins mailing list