-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Remove pathlib accessors #87178
Comments
Per Pitrou:
https://discuss.python.org/t/make-pathlib-extensible/3428/2 Accessors are:
When bpo-24132 lands, I think we're free to remove accessors and simplify some code |
PR looks good, just needs a look by a pathlib expert. |
Thank you Éric! |
This change is actually causing a problem for me. I have a unit test case which mocks out os.path.expanduser() but not the pathlib version. This works in 3.10 and earlier due to the indirection of the accessors, but in 3.11 the code ends up failing, since now the pathlib version of expanduser() is also getting into my mock. I wonder if there might be other code out there which also might be depending on this behavior, without even realizing it. |
pathlib._Accessor
#25701Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: