[Tutor] time.sleep() error

Kent Johnson kent37 at tds.net
Tue Aug 2 18:24:15 CEST 2005

sunny sunny wrote:
> Hi all,
> I am using time.sleep to stop my program execution for some time. I
> have imported time and am able to use it sucessfully in the main
> program.
> However if I use it in any function I get the following error:
> the time.sleep(1) command generates this error :
> TypeError : 'int' object is not callable 
> I have tried to add import time after the function definition, it
> still does not work. Please help.

It looks like somehow the name time.sleep has been bound to an integer. Please post the code and the full error trace.


More information about the Tutor mailing list