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 martin.panter
Recipients martin.panter, paul.moore, plakhotich, r.david.murray, steve.dower, tim.golden, zach.ware
Date 2015-11-10.00:08:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I don’t think we patch 3.2 or 3.3 any more unless it is a security concern. That is why I removed them. I understand 3.4 is due for its last non-security release in a couple weeks.

I was actually referring to your original suggestion in <>, dressed up below:

except OSError:
    # Cannot rely on checking for EEXIST, since the operating system could give priority to other errors like EACCES or EROFS
    if not (exist_ok and path.isdir(name)):

There may be practical reasons to continue if a parent directory exists on a read-only FS. Some OSes can mount writable FSes inside read-only FSes. See <> involving Cygwin, and <> involving a Linux regression.

Anyway, I think I am happy with either your last fix or the first, with an appropriate comment, and hopefully also a test case.
Date User Action Args
2015-11-10 00:08:15martin.pantersetrecipients: + martin.panter, paul.moore, tim.golden, r.david.murray, zach.ware, steve.dower, plakhotich
2015-11-10 00:08:15martin.pantersetmessageid: <>
2015-11-10 00:08:15martin.panterlinkissue25583 messages
2015-11-10 00:08:15martin.pantercreate