summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.5.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 19:16:11 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 19:16:11 (GMT)
commitf70e1ca0fc30426d12aa8fc6684764ee11a66777 (patch)
treeadde4b05e331c51ea39f603aff8171ca1527cef6 /Doc/whatsnew/3.5.rst
parent3f5d48bead8e937aef6f94a3211406270c1a5f8f (diff)
downloadcpython-f70e1ca0fc30426d12aa8fc6684764ee11a66777.zip
cpython-f70e1ca0fc30426d12aa8fc6684764ee11a66777.tar.gz
cpython-f70e1ca0fc30426d12aa8fc6684764ee11a66777.tar.bz2
Issue #23485: select.select() is now retried automatically with the recomputed
timeout when interrupted by a signal, except if the signal handler raises an exception. This change is part of the PEP 475. The asyncore and selectors module doesn't catch the InterruptedError exception anymore when calling select.select(), since this function should not raise InterruptedError anymore.
Diffstat (limited to 'Doc/whatsnew/3.5.rst')
-rw-r--r--Doc/whatsnew/3.5.rst14
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index d33dfe8..3f70a94 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -173,9 +173,10 @@ PEP and implementation written by Ben Hoyt with the help of Victor Stinner.
PEP 475: Retry system calls failing with EINTR
----------------------------------------------
-:pep:`475` adds support for automatic retry of system calls failing with EINTR:
-this means that user code doesn't have to deal with EINTR or InterruptedError
-manually, and should make it more robust against asynchronous signal reception.
+:pep:`475` adds support for automatic retry of system calls failing with
+:py:data:`~errno.EINTR`: this means that user code doesn't have to deal with
+EINTR or :exc:`InterruptedError` manually, and should make it more robust
+against asynchronous signal reception.
.. seealso::
@@ -614,12 +615,13 @@ that may require changes to your code.
Changes in the Python API
-------------------------
-* :pep:`475`: the following functions are now retried when interrupted instead
- of raising :exc:`InterruptedError` if the signal handler does not raise
- an exception:
+* :pep:`475`: Examples of functions which are now retried when interrupted
+ instead of raising :exc:`InterruptedError` if the signal handler does not
+ raise an exception:
- :func:`os.open`, :func:`open`
- :func:`os.read`, :func:`os.write`
+ - :func:`select.select`
- :func:`time.sleep`
* Before Python 3.5, a :class:`datetime.time` object was considered to be false