need help about time.sleep, timer

Peter Hansen peter at engcorp.com
Fri Nov 18 22:45:37 EST 2005


Sinan Nalkaya wrote:
> i need a function like that,
> wait 5 seconds:
>    (during wait) do the function
> but function waits for keyboard input so if you dont enter any it waits 
> forever.

It's quite unclear whether the last part, above, is one of your 
*requirements*, or a description of a problem you are having with your 
current approach.  Do you *want* it to wait forever if you don't enter 
anthing?

-Peter



More information about the Python-list mailing list