[Tutor] List comprehension question
David Hutto
smokefloat at gmail.com
Fri Nov 12 16:13:49 CET 2010
Apologies, missed that part. Didn't mean to seem rude.
import timeit
def anyName():
pass
for num in range(10):
t = timeit.Timer('anyName()','from __main__ import anyName')
print t.repeat(repeat=5)
#or
import timeit
def anyName():
pass
t = timeit.Timer('anyName()','from __main__ import anyName')
print t.repeat(repeat=5)
If I get the gist of what you're asking.
More information about the Tutor
mailing list