-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Handle leading //
for posixpath.realpath
#117338
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
Comments
|
I'm currently on my Windows laptop, so I can't check. |
There doesn't seem to be anything like a "needs investigation" label. Happy to leave this issue open for a bit while you further research a repro case, but if we can't find one, then I think this issue should be closed as "can't repro". |
Also, the current behaviour is undocumented:
Normalizing doesn't touch the double slash & |
You're quoting a comment above the internal Both the
|
OK, but that comment doesn't document this feature, which it probably should, in case this works correctly. |
Why do you want to fix this, and could you describe in more detail how the changes relate to the specification you are pointing to? I don't see what in the specification requires this. |
//
for realpath.commonpath
//
for posixpath.realpath
We don't need to document every detail of what |
I've added just one sentence in this pull request: #117350.
Where should I add the test though? It doesn't really fit in with the rest of the changes. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Expected:
//foo
with precisely two leading slashes, see: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13This can be quite easily solved using
posixpath.splitroot
, see the PR.CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
//
forposixpath.realpath
#117340The text was updated successfully, but these errors were encountered: