-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
gh-117201: Handle leading //
for posixpath.commonpath
#117202
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
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Hmm, looks like |
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very tidy implementation! I'm particularly pleased you removed this head-scratcher:
isabs, = set(p[:1] == sep for p in paths)
Could you add a news blurb?
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Barneygale, I have made the requested changes; please review again. |
Thanks for making the requested changes! @barneygale: please review the changes made to this pull request. |
Eh, there seems to be a bug with @bedevere-app:
Not entirely sure where to report that... |
Don't worry about making |
I was simply refactoring the other functions to make them more readable, while waiting for suggestions. |
Yes please, separate PRs for separate changes makes each one easier to review. Note that we don't accept changes that only improve readability. It causes too much churn and too many arguments. But you're welcome to improve readability as part of another change, e.g. a bugfix, enhancement or speed-up, as long as you're not introducing too much risk by tinkering with delicate code. Hope that makes sense? |
Tracked further here:
os
#117361