[Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

Victor Stinner victor.stinner at gmail.com
Wed Jul 17 13:16:27 CEST 2013


2013/7/7 Charles-François Natali <cf.natali at gmail.com>:
> Well, it complicates the signature and implementation.
> If we go the same way, why stop there and not expose O_DSYNC, O_SYNC,
> O_DIRECT...

I added this counter-argument to the PEP.

> If you want precise control over the open() sementics, os.open() is
> the way to go (that's also the rationale behind io.open() opener
> argument, see http://bugs.python.org/issue12105)

Right.

Victor


More information about the Python-Dev mailing list