Update PEP with latest changes.

This commit is contained in:
Antoine Pitrou 2015-02-02 21:38:52 +01:00
parent 2acd07014c
commit 5064748c52
1 changed files with 7 additions and 0 deletions

View File

@ -167,6 +167,7 @@ Modified functions
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 @@ with this PEP:
(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
-------------------------