GeezerVison is showing github.com — gh-86943: implement `pathlib.WindowsPath.is_mount()` by barneygale · Pull Request #31458 · python/cpython
Conversation
barneygale
commented
Feb 21, 2022
•
edited by miss-islington
Loading
Uh oh!
There was an error while loading. Please reload this page.
Have pathlib.WindowsPath.is_mount() call ntpath.ismount(). Previously it raised NotImplementedError unconditionally.
https://bugs.python.org/issue42777
Automerge-Triggered-By: GH:brettcannon
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Will review soon
Don't worry about it - I'm trying to focus my efforts on two more important PRs: #31691 and #91882. The branch has conflicts anyway.
|
zmievsa reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
barneygale
changed the title
bpo-42777: implement pathlib.WindowsPath.is_mount()
gh-86943: implement pathlib.WindowsPath.is_mount()
Jul 30, 2022
barneygale
commented
Jul 30, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Not sure what's going on with the test failure - looks like ntpath.ismount('C:/\x00') is true in main? It raises an exception in my Windows VM with Python 3.10.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Not sure what's going on with the test failure - looks like ntpath.ismount('C:/\x00') is true in main? It raises an exception in my Windows VM with Python 3.10.
The new implementation of normpath() strips the trailing null character. The old implementation keeps it.
|
barneygale reacted with heart emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
These paths are invalid on posix and windows.
The new implementation of normpath() strips the trailing null character. The old implementation keeps it.
Do you think this needs to be fixed, or is it an improvement?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Do you think this needs to be fixed, or is it an improvement?
I think it's unlikely to come up in real world usage. IMO it's one of the quirks noted in 99fcf15:
This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
eryksun
eryksun left review comments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|