Python Signal Module
Async event handling — signal, alarm, pause, setitimer. This category documents 7 Python signal module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: signal.signal(), signal.pause(), signal.alarm(), signal.setitimer(), signal.getsignal(), signal.SIG_DFL, signal.SIG_IGN. signal.signal() sets a handler for a signal (like SIGINT, SIGTERM). signal.pause() blocks until a signal is received (Unix only). signal.alarm() sets a SIGALRM timer in seconds. Only one alarm can be pending. signal.setitimer() sets an interval timer with microsecond precision. signal.getsignal() returns the current signal handler for a given signal. Signal Module belongs to the System & OS group alongside OS Module, Sys Module, Platform Module, Getpass Module. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground.