summaryrefslogtreecommitdiff
path: root/Doc/library/selectors.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-31 12:08:09 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-03-31 12:08:09 +0200
commiteae8624b93258135fa4e4329fc79add27df87de4 (patch)
tree14d663ca0278017969cd26f4e9a4b1d208c65a7a /Doc/library/selectors.rst
parent1f2890e7f13c4a7b231eaf09b841bb0ec56fd71a (diff)
downloadcpython-eae8624b93258135fa4e4329fc79add27df87de4.tar.gz
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 8bd9e1ce2e..f6ef24b6ae 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.