[Python-checkins] peps: PEP 466: another counter-argument for open(blocking=True)
victor.stinner
python-checkins at python.org
Wed Jul 17 13:15:26 CEST 2013
http://hg.python.org/peps/rev/fa873d5aed27
changeset: 5004:fa873d5aed27
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Jul 17 13:15:18 2013 +0200
summary:
PEP 466: another counter-argument for open(blocking=True)
files:
pep-0446.txt | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/pep-0446.txt b/pep-0446.txt
--- a/pep-0446.txt
+++ b/pep-0446.txt
@@ -199,6 +199,12 @@
function should not be available on the platform. For example,
the ``os.fork()`` function is not available on Windows.
+UNIX has more flag on file descriptors: ``O_DSYNC``, ``O_SYNC``,
+``O_DIRECT``, etc. Adding all these flags complicates the signature and
+the implementation of functions creating file descriptor like open().
+Moreover, these flags do not work on any file type, and are not
+portable.
+
For all these reasons, this alternative was rejected. The PEP 3156
proposes an abstraction for asynchronous I/O supporting non-blocking
files on Windows.
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list