Skip to content

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

5 participants