Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e4f5600

Browse files
committed
[Bug 1083177] Describe signal() change; add a link
1 parent 1dd087c commit e4f5600

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

Doc/whatsnew/whatsnew24.tex

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,11 @@ \section{PEP 318: Decorators for Functions and Methods}
379379
by Kevin D. Smith, Jim Jewett, and Skip Montanaro. Several people
380380
wrote patches implementing function decorators, but the one that was
381381
actually checked in was patch \#979728, written by Mark Russell.}
382-
\end{seealso}
383382

384-
% XXX add link to decorators module in Wiki
383+
\seeurl{http://www.python.org/moin/PythonDecoratorLibrary}
384+
{This Wiki page contains several examples of decorators.}
385+
386+
\end{seealso}
385387

386388

387389
%======================================================================
@@ -1426,6 +1428,12 @@ \section{New, Improved, and Deprecated Modules}
14261428
Python 2.4's regular expression engine can match this pattern without
14271429
problems.
14281430

1431+
\item The \module{signal} module now performs tighter error-checking
1432+
on the parameters to the \function{signal.signal()} function. For
1433+
example, you can't set a handler on the \constant{SIGKILL} signal;
1434+
previous versions of Python would quietly accept this, but 2.4 will
1435+
raise a \exception{RuntimeError} exception.
1436+
14291437
\item Two new functions were added to the \module{socket} module.
14301438
\function{socketpair()} returns a pair of connected sockets and
14311439
\function{getservbyport(\var{port})} looks up the service name for a
@@ -1724,8 +1732,10 @@ \section{Porting to Python 2.4}
17241732
\item \constant{None} is now a constant; code that binds a new value to
17251733
the name \samp{None} is now a syntax error.
17261734

1727-
% signal module now raises a RuntimeError on insane calls - e.g. setting a
1728-
% handler on SIGKILL
1735+
\item The \function{signals.signal()} function now raises a
1736+
\exception{RuntimeError} exception for certain illegal values;
1737+
previously these errors would pass silently. For example, you can no
1738+
longer set a handler on the \constant{SIGKILL} signal.
17291739

17301740
\end{itemize}
17311741

0 commit comments

Comments
 (0)