-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
ntpath.abspath()
always return absolute path
#119826
Comments
cc @barneygale, @eryksun |
I'm mostly concerned with fixing The case of Note that no changes are required for the documented behavior and call signature of @barneygale, |
I think this is too likely to break users code if The dropping of leading I wish I could fix it :( but I can't see a route that won't cause unreasonable breakage. I wish we'd caught this while pathlib was still provisional. |
I split up the pull request to make it easier to review. Feel free to take a look if you have time. |
ntpath.normpath()
& ntpath.abspath()
ntpath.abspath()
always return absolute path
Originally posted by @nineteendo in #119938 (comment) Let's address the above points to decide whether this one should be closed as completed or not. |
The issue has already been split up, so we should decide whether always returning an absolute path for |
@zooba, can this be closed? |
…ythonGH-119938) (cherry picked from commit 4b00aba) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
…ythonGH-119938) (cherry picked from commit 4b00aba) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Thanks. |
Feature or enhancement
Proposal:
ntpath.abspath()
doesn't always return an absolute path:Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
posixpath.abspath()
for relative paths #117587Linked PRs
ntpath.abspath()
always return absolute path #119938The text was updated successfully, but these errors were encountered: