mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
fix #21076: turn signal module constants into enums
This commit is contained in:
parent
bcc174615c
commit
e09fb7198a
7 changed files with 138 additions and 8 deletions
|
@ -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:
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue