diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-04-04 13:34:17 (GMT) |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-04-04 13:34:17 (GMT) |
commit | e09fb7198ae2e4f737db7369006ad19e51699fbf (patch) | |
tree | 52a94575cd518a23b79430a0d89c66cbc839a2d5 /Doc/library | |
parent | bcc174615ca2bd5fe60442407ca1411759d823cf (diff) | |
download | cpython-e09fb7198ae2e4f737db7369006ad19e51699fbf.zip cpython-e09fb7198ae2e4f737db7369006ad19e51699fbf.tar.gz cpython-e09fb7198ae2e4f737db7369006ad19e51699fbf.tar.bz2 |
fix #21076: turn signal module constants into enums
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/signal.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst index 84e2836..a97ce66 100644 --- a/Doc/library/signal.rst +++ b/Doc/library/signal.rst @@ -65,6 +65,16 @@ Besides, only the main thread is allowed to set a new signal handler. Module contents --------------- +.. versionchanged:: 3.5 + signal (SIG*), handler (:const:`SIG_DFL`, :const:`SIG_IGN`) and sigmask + (:const:`SIG_BLOCK`, :const:`SIG_UNBLOCK`, :const:`SIG_SETMASK`) + related constants listed below were turned into + :class:`enums <enum.IntEnum>`. + :func:`getsignal`, :func:`pthread_sigmask`, :func:`sigpending` and + :func:`sigwait` functions return human-readable + :class:`enums <enum.IntEnum>`. + + The variables defined in the :mod:`signal` module are: |