sleep?

maximilianscherr MaximilianScherr at T-Online.de
Wed Jan 23 13:26:00 EST 2002


Thanks, you are all really nice to newbies here:)

--- In python-list at y..., montanaro at t... wrote:
> 
>     Max> is there anything like sleep() but which not blocks the 
script?  i
>     Max> mean like in 10 minutes start that function
> 
> Take a look at signal.alarm.  That "rings the bell" so-to-speak.  
You will
> have to handle the SIGALRM signal yourself.
> 
> If you happen to use asyncore to do asynchronous I/O, I just posted 
a little
> alarms module to my website that extends it to allow you to set and 
handle
> multiple alarms.  It's at <http://manatee.mojam.com/~skip/python/>.
> 
> -- 
> Skip Montanaro (skip at p... - http://www.mojam.com/)
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list