sleep?

montanaro at tttech.com montanaro at tttech.com
Thu Jan 24 04:51:24 EST 2002


    Max> could it be taht this isn't possible in win?

Dunno.  You can test the signal.alarm call from the interpreter prompt:

    >>> import signal
    >>> signal.alarm(1)
    0

After 1 second I get:

    >>> Alarm clock

and Python exits (because I had no handler set up for SIGALRM).

I think asyncore works on Windows, so my alarms module should work, though I
only wrote it a few days ago and it hasn't been tried on Windows yet.

Skip




More information about the Python-list mailing list