summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-31 10:18:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-31 10:18:35 (GMT)
commit80d84c89ee8f10cd3a5d1dfa2ea1cd51f810ec33 (patch)
treeeb155114bc072c4d0627a4e423b0aee4f6731ace /Doc
parentd5d818d40b9378488dc82150926e20e925acf7fe (diff)
parentb31017331994abcc6af3ce2febfc33593c3d7fec (diff)
downloadcpython-80d84c89ee8f10cd3a5d1dfa2ea1cd51f810ec33.zip
cpython-80d84c89ee8f10cd3a5d1dfa2ea1cd51f810ec33.tar.gz
cpython-80d84c89ee8f10cd3a5d1dfa2ea1cd51f810ec33.tar.bz2
Merge heads
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/select.rst12
-rw-r--r--Doc/library/selectors.rst6
-rw-r--r--Doc/whatsnew/3.5.rst5
3 files changed, 21 insertions, 2 deletions
diff --git a/Doc/library/select.rst b/Doc/library/select.rst
index 61f3835..a62dc84 100644
--- a/Doc/library/select.rst
+++ b/Doc/library/select.rst
@@ -249,6 +249,12 @@ object.
returning. If *timeout* is omitted, -1, 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`.
+
.. _epoll-objects:
@@ -454,6 +460,12 @@ Kqueue Objects
- max_events must be 0 or a positive integer
- timeout in seconds (floats possible)
+ .. 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`.
+
.. _kevent-objects:
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.
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 6c2d521..434c0a7 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -619,9 +619,10 @@ Changes in the Python API
instead of raising :exc:`InterruptedError` if the signal handler does not
raise an exception:
- - :func:`os.open`, :func:`open`
+ - :func:`open`, :func:`os.open`, :func:`io.open`
- :func:`os.read`, :func:`os.write`
- - :func:`select.select`, :func:`select.poll.poll`, :func:`select.epoll.poll`
+ - :func:`select.select`, :func:`select.poll.poll`, :func:`select.epoll.poll`,
+ :func:`select.kqueue.control`, :func:`select.devpoll.poll`
- :func:`time.sleep`
* Before Python 3.5, a :class:`datetime.time` object was considered to be false