Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True)#805

Merged
serhiy-storchaka merged 2 commits into
python:masterpython/cpython:masterfrom
serhiy-storchaka:pathlib-mkdir-exist_ok-rootserhiy-storchaka/cpython:pathlib-mkdir-exist_ok-rootCopy head branch name to clipboard
Mar 24, 2017
Merged

bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True)#805
serhiy-storchaka merged 2 commits into
python:masterpython/cpython:masterfrom
serhiy-storchaka:pathlib-mkdir-exist_ok-rootserhiy-storchaka/cpython:pathlib-mkdir-exist_ok-rootCopy head branch name to clipboard

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

when the OS gives priority to errors such as EACCES over EEXIST.

when the OS gives priority to errors such as EACCES over EEXIST.
@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error needs backport to 2.7 labels Mar 24, 2017
@serhiy-storchaka serhiy-storchaka requested a review from pitrou March 24, 2017 17:19
@mention-bot

Copy link
Copy Markdown

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @brettcannon, @zooba and @warsaw to be potential reviewers.

Comment thread Lib/pathlib.py
@@ -1222,23 +1222,18 @@ def touch(self, mode=0o666, exist_ok=True):
def mkdir(self, mode=0o777, parents=False, exist_ok=False):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you quickly add a docstring? Maybe "Create a new directory at this given path."?

A more thorough one is probably even better explaining the parameters, but the one-liner is better than nothing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@serhiy-storchaka serhiy-storchaka merged commit af7b9ec into python:master Mar 24, 2017
@serhiy-storchaka serhiy-storchaka deleted the pathlib-mkdir-exist_ok-root branch March 24, 2017 18:51
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Mar 24, 2017
…python#805)

when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec)
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Mar 24, 2017
…python#805)

when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec)
serhiy-storchaka added a commit that referenced this pull request Mar 24, 2017
…#805) (#807)

when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec)
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @serhiy-storchaka, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker af7b9ec5c855366feef4c67dc492d64b3baf84ca 2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.