summaryrefslogtreecommitdiffstats
path: root/Doc/library/selectors.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-31 10:08:09 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-31 10:08:09 (GMT)
commitb31017331994abcc6af3ce2febfc33593c3d7fec (patch)
treeab3097d35ec2ba5c001a81781f8726e3603ea73c /Doc/library/selectors.rst
parent45ca48b03d08cdc9959e0577bc84b845931112f6 (diff)
downloadcpython-b31017331994abcc6af3ce2febfc33593c3d7fec.zip
cpython-b31017331994abcc6af3ce2febfc33593c3d7fec.tar.gz
cpython-b31017331994abcc6af3ce2febfc33593c3d7fec.tar.bz2
Issue #23485: Enhance and update selectors doc and test_selectors
Selector.select() is now retried with the recomputed timeout when interrupted by a signal. Write an unit test with a signal handler raising an exception, and a unit with a signal handler which does not raise an exception (it does nothing).
Diffstat (limited to 'Doc/library/selectors.rst')
-rw-r--r--Doc/library/selectors.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/selectors.rst b/Doc/library/selectors.rst
index 8bd9e1c..f6ef24b 100644
--- a/Doc/library/selectors.rst
+++ b/Doc/library/selectors.rst
@@ -159,6 +159,12 @@ below:
timeout has elapsed if the current process receives a signal: in this
case, an empty list will be returned.
+ .. versionchanged:: 3.5
+ The selector is now retried with a recomputed timeout when interrupted
+ by a signal if the signal handler did not raise an exception (see
+ :pep:`475` for the rationale), instead of returning an empty list
+ of events before the timeout.
+
.. method:: close()
Close the selector.