geon napsal(a):
sunny sunny napsal(a):
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
sunny sunny napsal(a):
>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 :
>
Some additional information:
I am calling this function from a thread and I get the error.
However if I call the function from the main program it works fine.
I am using thread.start_new_thread() to start the thread.
Thanks.
Santosh.
On 8/2/05, sunny sunny <[EMAIL PROTECTED]> wrote:
> Hi all
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
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 ca