Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e9a33024
Commit
e9a33024
authored
Jan 07, 2005
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug 1083177] Describe signal() change; add a link
parent
ba67a473
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
Doc/whatsnew/whatsnew24.tex
Doc/whatsnew/whatsnew24.tex
+14
-4
No files found.
Doc/whatsnew/whatsnew24.tex
View file @
e9a33024
...
...
@@ -379,9 +379,11 @@ function that's constructed and returned.
by Kevin D. Smith, Jim Jewett, and Skip Montanaro. Several people
wrote patches implementing function decorators, but the one that was
actually checked in was patch
\#
979728
, written by Mark Russell.
}
\end
{
seealso
}
% XXX add link to decorators module in Wiki
\seeurl
{
http:
//
www.python.org
/
moin
/
PythonDecoratorLibrary
}
{
This Wiki page contains several examples of decorators.
}
\end
{
seealso
}
%======================================================================
...
...
@@ -1426,6 +1428,12 @@ sidestep the checking and if you were unlucky Python could segfault.
Python
2
.
4
's regular expression engine can match this pattern without
problems.
\item
The
\module
{
signal
}
module now performs tighter error
-
checking
on the parameters to the
\function
{
signal.signal
()
}
function. For
example, you can't set a handler on the
\constant
{
SIGKILL
}
signal;
previous versions of Python would quietly accept this, but
2
.
4
will
raise a
\exception
{
RuntimeError
}
exception.
\item
Two new functions were added to the
\module
{
socket
}
module.
\function
{
socketpair
()
}
returns a pair of connected sockets and
\function
{
getservbyport
(
\var
{
port
}
)
}
looks up the service name for a
...
...
@@ -1724,8 +1732,10 @@ a partially-initialized module object in \code{sys.modules}.
\item
\constant
{
None
}
is now a constant; code that binds a new value to
the name
\samp
{
None
}
is now a syntax error.
% signal module now raises a RuntimeError on insane calls - e.g. setting a
% handler on SIGKILL
\item
The
\function
{
signals.signal
()
}
function now raises a
\exception
{
RuntimeError
}
exception for certain illegal values;
previously these errors would pass silently. For example, you can no
longer set a handler on the
\constant
{
SIGKILL
}
signal.
\end
{
itemize
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment