Hi,
I want to go back after signal handler to the isntruction where I was
stuck. Below is the code I'm trying to play with.
#!/usr/bin/env python
### Start of code ###
import os, signal
def handler(signum, frame):
print "Signum: ", signum
return
signal.signal(signal.SIGALRM,handler)
signal.alarm(2)
# I want to come back here after signal handler
raw_input("Enter input: ")
signal.alarm(0)
# End of code
What I'm trying to do is to implement a prompt with the remaining time
they have to enter some input.
--
Hameed U. Khan
Registered Linux User #: 354374
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor