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 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?
History
Date User Action Args
2015-02-15 18:03:14serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, ncoghlan, rupole, tim.golden, BreamoreBoy, zach.ware, steve.dower
2015-02-15 18:03:14serhiy.storchakasetmessageid: <1424023394.09.0.125931708066.issue22107@psf.upfronthosting.co.za>
2015-02-15 18:03:14serhiy.storchakalinkissue22107 messages
2015-02-15 18:03:14serhiy.storchakacreate