Skip to content
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

bpo-40038: pathlib: remove partial support for preserving accessor when modifying a path #19342

Merged

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Apr 3, 2020

Now #18846 has landed, pathlib.Path._init() does nothing useful and can be removed.

A long time ago, _init() helped preserve the current accessor when creating new paths from an existing path (e.g. by calling q = p.resolve()). But this has only ever worked for a small handful of methods, was never documented, and we currently don't support anything other than _NormalAccessor anyway.

More info in the bug report.

https://bugs.python.org/issue40038

@pitrou
Copy link
Member

pitrou commented Apr 17, 2020

Could you merge / rebase with git master so that we run CI freshly?

@barneygale barneygale force-pushed the bpo-40038-pathlib-path-private-init branch from 71e433a to b65d1cc Compare May 29, 2020 00:52
@barneygale
Copy link
Contributor Author

Rebased. Sorry for long delay.

@barneygale
Copy link
Contributor Author

@pitrou this is read for review FYI! Thanks very much

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.

5 participants