From 0ef914e615e66efa5a23eaa27d45001fbd8c92f5 Mon Sep 17 00:00:00 2001 From: Chris White Date: Thu, 24 Mar 2016 08:04:45 -0400 Subject: [PATCH] Debugged list speed timeits for Python 2.7, required Python 3's print() --- 02-array-seq/listcomp_speed.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/02-array-seq/listcomp_speed.py b/02-array-seq/listcomp_speed.py index 0ec8b58..8f22263 100644 --- a/02-array-seq/listcomp_speed.py +++ b/02-array-seq/listcomp_speed.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# need print to be a function so I can call '*' (splat) +# on a list to unpack it as arguments to print() +from __future__ import print_function import timeit TIMES = 10000