This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients David.Townshend, benjamin.peterson, docs@python, neologix, vstinner
Date 2011-08-16.15:37:05
SpamBayes Score 7.826392e-07
Marked as misclassified No
Message-id <>
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:
os.fdopen('/etc/fstab', os.O_WRONLY|os.O_CLOEXEC|os.O_CREAT))
it's more verbose, though.
Date User Action Args
2011-08-16 15:37:06neologixsetrecipients: + neologix, vstinner, benjamin.peterson, docs@python, David.Townshend
2011-08-16 15:37:06neologixsetmessageid: <>
2011-08-16 15:37:05neologixlinkissue12760 messages
2011-08-16 15:37:05neologixcreate