[issue12760] Add create mode to open()
report at bugs.python.org
Tue Aug 16 17:37:06 CEST 2011
Charles-François Natali <neologix at free.fr> added the comment:
See also issue 12105.
A couple downsides:
- O_EXCL is not necessarily portable (doesn't work well with NFS, maybe not on Windows?)
- O_EXCL is useful, as is O_CLOEXEC: to be consistent, we should also end up adding all other commonly-used flags, which are really OS-specific
Furthermore, you can achieve the same thing with:
it's more verbose, though.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list