t = timeit.Timer(“test1(sent,rd)”)
>>> t.timeit()
Traceback (most recent call last):
File “<pyshell#154>”, line 1, in <module>
t.timeit()
File “C:\Python25\lib\timeit.py”, line 161, in timeit
timing = self.inner(it, self.timer)
File “<timeit-src>”, line 6, in inner
NameError: global name ‘test1’ is not defined
>>> globals()
{'a': ‘qwer23’, ‘test1’: <function test1 at 0x019AEBF0>, ‘timeit’: <module ‘timeit’ from ‘C:\Python25\lib\timeit.pyc’>,