montanaro at montanaro at
Wed Jan 23 17:12:21 CET 2002

    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 <>.

Skip Montanaro (skip at -

More information about the Python-list mailing list