mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Clarify the type of the signal handler.
This commit is contained in:
parent
4a0144c0de
commit
52481484e6
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ The \module{signal} module defines the following functions:
|
|||
|
||||
\begin{funcdesc}{signal}{signalnum, handler}
|
||||
Set the handler for signal \var{signalnum} to the function
|
||||
\var{handler}. \var{handler} can be any callable Python object, or
|
||||
\var{handler}. \var{handler} can be a callable Python object
|
||||
taking two arguments (see below), or
|
||||
one of the special values \constant{signal.SIG_IGN} or
|
||||
\constant{signal.SIG_DFL}. The previous signal handler will be returned
|
||||
(see the description of \function{getsignal()} above). (See the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue