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