[Python-checkins] peps: Update PEP with latest changes.
antoine.pitrou
python-checkins at python.org
Mon Feb 2 21:39:28 CET 2015
https://hg.python.org/peps/rev/9cdb1b30f643
changeset: 5689:9cdb1b30f643
user: Antoine Pitrou <solipsis at pitrou.net>
date: Mon Feb 02 21:38:52 2015 +0100
summary:
Update PEP with latest changes.
files:
pep-0475.txt | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/pep-0475.txt b/pep-0475.txt
--- a/pep-0475.txt
+++ b/pep-0475.txt
@@ -167,6 +167,7 @@
Example of standard library functions that need to be modified to comply
with this PEP:
+* ``open()``, ``os.open()``
* ``os.read()``, ``io.FileIO.read()``, ``io.FileIO.readinto()``
* ``os.write()``, ``io.FileIO.write()``
* ``os.waitpid()``
@@ -187,6 +188,12 @@
(note: the ``selector`` module already retries on ``InterruptedError``, but it
doesn't recompute the timeout yet)
+``os.close`` and ``close()`` methods are a special case: they will ignore
+EINTR instead of retrying. The reason is complex but involves behaviour
+under Linux and the fact that `the file descriptor may really be closed
+<http://lwn.net/Articles/576478/>`_ even if EINTR is returned.
+
+
InterruptedError handling
-------------------------
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list