summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 21:38:00 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 21:38:00 +0200
commit3c7d6e069331ceab0da6b794e4069f07bb3d4aac (patch)
tree42284993b3b0cdc127c69218140a2650e73b8e60 /Doc
parentfa09beb1508f782b51ba0a2815c07e0294f40e95 (diff)
downloadcpython-git-3c7d6e069331ceab0da6b794e4069f07bb3d4aac.tar.gz
Issue #23485: select.poll.poll() is now retried when interrupted by a signal
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/select.rst6
-rw-r--r--Doc/whatsnew/3.5.rst2
2 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/select.rst b/Doc/library/select.rst
index 7fe09cbe29..26e74c70b7 100644
--- a/Doc/library/select.rst
+++ b/Doc/library/select.rst
@@ -408,6 +408,12 @@ linearly scanned again. :c:func:`select` is O(highest file descriptor), while
returning. If *timeout* is omitted, negative, or :const:`None`, the call will
block until there is an event for this poll object.
+ .. versionchanged:: 3.5
+ The function is now retried with a recomputed timeout when interrupted by
+ a signal, except if the signal handler raises an exception (see
+ :pep:`475` for the rationale), instead of raising
+ :exc:`InterruptedError`.
+
.. _kqueue-objects:
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 3f70a94466..07776c11b0 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -621,7 +621,7 @@ Changes in the Python API
- :func:`os.open`, :func:`open`
- :func:`os.read`, :func:`os.write`
- - :func:`select.select`
+ - :func:`select.select`, :func:`select.poll.poll`
- :func:`time.sleep`
* Before Python 3.5, a :class:`datetime.time` object was considered to be false