Message142200
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. |
|
Date |
User |
Action |
Args |
2011-08-16 15:37:06 | neologix | set | recipients:
+ neologix, vstinner, benjamin.peterson, docs@python, David.Townshend |
2011-08-16 15:37:06 | neologix | set | messageid: <1313509026.46.0.128827885643.issue12760@psf.upfronthosting.co.za> |
2011-08-16 15:37:05 | neologix | link | issue12760 messages |
2011-08-16 15:37:05 | neologix | create | |
|