Kaydet (Commit) 52481484 authored tarafından Guido van Rossum's avatar Guido van Rossum

Clarify the type of the signal handler.

üst 4a0144c0
...@@ -125,7 +125,8 @@ The \module{signal} module defines the following functions: ...@@ -125,7 +125,8 @@ The \module{signal} module defines the following functions:
\begin{funcdesc}{signal}{signalnum, handler} \begin{funcdesc}{signal}{signalnum, handler}
Set the handler for signal \var{signalnum} to the function 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 one of the special values \constant{signal.SIG_IGN} or
\constant{signal.SIG_DFL}. The previous signal handler will be returned \constant{signal.SIG_DFL}. The previous signal handler will be returned
(see the description of \function{getsignal()} above). (See the (see the description of \function{getsignal()} above). (See the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment