-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Fix error message for ntpath.commonpath
#117381
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 did some googling and found that Microsoft has a document which describes "relative rooted path": https://learn.microsoft.com/en-us/dotnet/api/system.io.path.ispathrooted?view=net-8.0#remarks
So I think the relative rooted path should be something like |
That was recently changed: The error message could also be "Can't mix rooted and not-rooted paths" as |
How does this change make life better or easier for those encountering this message? At first glance, it appears to be getting into overly precise terminology that doesn't help educate or correct the caller. |
The error message states: "Can't mix absolute and relative paths".
So, this error message is factually incorrect. |
Bug report
Bug description:
/foo
is not an absolute path, but a rooted path, which can't be mixed with not-rooted paths.CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
ntpath.commonpath
#117382The text was updated successfully, but these errors were encountered: