From 5064748c5259e44e653f1adc01268e4d17d8e41a Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 2 Feb 2015 21:38:52 +0100 Subject: [PATCH] Update PEP with latest changes. --- pep-0475.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pep-0475.txt b/pep-0475.txt index a8f7aa5d4..630bdc8d4 100644 --- a/pep-0475.txt +++ b/pep-0475.txt @@ -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 +`_ even if EINTR is returned. + + InterruptedError handling -------------------------