pydoc > _signal

📋 NAME

_signal - This module provides mechanisms to use signal handlers in Python.

🚀 Quick Reference

🎯 Use Case⚙️ Command📝 Description
Set a signal handlersignal(signalnum, handler)Set the action for a given signal
Get current handlergetsignal(signalnum)Return the current action for the given signal
Alarm after delayalarm(seconds)Cause SIGALRM after specified time (Unix only)
Wait for signalpause()Wait until a signal arrives (Unix only)
Set interval timersetitimer(which, seconds, interval)Set an itimer with initial and interval time
Send signal to threadpthread_kill(thread_id, signalnum)Send a signal to a thread
Block/unblock signalspthread_sigmask(how, mask)Fetch/change signal mask of calling thread
Wakeup fd on signalset_wakeup_fd(fd)Set fd to be written when signal arrives

📖 DESCRIPTION

Functions:

signal constants:

itimer constants:

*** IMPORTANT NOTICE ***
A signal handler function is called with two arguments: the first is the signal number, the second is the interrupted stack frame.

🔧 FUNCTIONS

📊 DATA

📁 FILE

(built-in)

_signal
📋 NAME 🚀 Quick Reference 📖 DESCRIPTION 🔧 FUNCTIONS 📊 DATA 📁 FILE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-02 17:03 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^