Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GH-127381: pathlib ABCs: remove WritablePath.mkdir() arguments #130611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 1, 2025

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Feb 26, 2025

Remove the mode, parents and exist_ok arguments from WritablePath.mkdir(). These arguments imply support for POSIX permissions and checking for preexistence of the path or its parents, but subclasses of WritablePath may not have these capabilities.

Remove the *mode*, *parents* and *exist_ok* arguments from
`WritablePath.mkdir()`. These arguments imply support for POSIX permissions
and checking for preexistence of the path or its parents, but subclasses of
`WritablePath` may not have these capabilities.
@barneygale barneygale marked this pull request as ready for review February 28, 2025 19:55
@barneygale barneygale merged commit c9932a9 into python:main Mar 1, 2025
40 checks passed
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
python#130611)

Remove the *mode*, *parents* and *exist_ok* arguments from
`WritablePath.mkdir()`. These arguments imply support for POSIX permissions
and checking for preexistence of the path or its parents, but subclasses of
`WritablePath` may not have these capabilities.

The public `Path.mkdir()` method retains these arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant