diff options
author | Antoine Pietri <antoine.pietri1@gmail.com> | 2018-03-12 13:42:34 (GMT) |
---|---|---|
committer | Antoine Pitrou <pitrou@free.fr> | 2018-03-12 13:42:34 (GMT) |
commit | 5d2a27de625caf2fd5b763d8a8463790ccd954be (patch) | |
tree | d875f0d805f4f9b0500a9b1a96d4f8537fd566c4 /Doc | |
parent | 4484f9dca9149da135bbae035f10a50d20d1cbbb (diff) | |
download | cpython-5d2a27de625caf2fd5b763d8a8463790ccd954be.zip cpython-5d2a27de625caf2fd5b763d8a8463790ccd954be.tar.gz cpython-5d2a27de625caf2fd5b763d8a8463790ccd954be.tar.bz2 |
signal: add strsignal() (#6017)
Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/signal.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index 67eaa2c..3f17e08 100644 --- a/Doc/library/signal.rst +++ b/Doc/library/signal.rst @@ -207,6 +207,15 @@ The :mod:`signal` module defines the following functions: installed from Python. +.. function:: strsignal(signalnum) + + Return the system description of the signal *signalnum*, such as + "Interrupt", "Segmentation fault", etc. Returns :const:`None` if the signal + is not recognized. + + .. versionadded:: 3.8 + + .. function:: pause() Cause the process to sleep until a signal is received; the appropriate handler |