signal
Stdlib — ConcurrencyPython 2.0+Advanced
Set handlers for OS signals (SIGINT, SIGTERM, etc.)
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import signal print(f"Module: signal") print(f"Contents: {dir(signal)[:10]}")
The signal module is part of Python's standard library. Set handlers for OS signals (SIGINT, SIGTERM, etc.).
Try in PlaygroundTags
stdlibconcurrencyparallelism