For other signals should we raise
a- KeyboardInterrupt
b- a subclass of KeyboardInterrupt whose string representation is e.g. "Terminated by hangup"
c- some other exception?
I'd go for B - most likely to be handled correctly by any code that cares about the interrupt class.
OK I agree.
For other signals should we raise
a- KeyboardInterrupt
b- a subclass of KeyboardInterrupt whose string representation is e.g. "Terminated by hangup"
c- some other exception?
I'd go for B - most likely to be handled correctly by any code that cares about the interrupt class.