Message236055
| Author |
serhiy.storchaka |
| Recipients |
BreamoreBoy, georg.brandl, ncoghlan, rupole, serhiy.storchaka, steve.dower, tim.golden, zach.ware |
| Date |
2015年02月15日.18:03:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1424023394.09.0.125931708066.issue22107@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> Is there a difference if you do open(..., 'w')? It's a different enough operation that it may have a different error.
Oh, yes, I forgot the 'w' mode.
Mark, could you please run following test on Windows?
import os
open('foo', 'wb').close()
flags = os.O_RDWR | os.O_CREAT | os.O_EXCL | getattr(os, 'O_NOFOLLOW', 0) | getattr(os, 'O_BINARY', 0)
os.open('foo/bar', flags, 0o600) # what raised?
os.open('nonexistent/bar', flags, 0o600) # what raised? |
|