Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-117201: Handle leading// forposixpath.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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
nineteendo wants to merge14 commits intopython:mainfromnineteendo:fix-commonpath

Conversation

@nineteendo
Copy link
Contributor

@nineteendonineteendo commentedMar 24, 2024
edited
Loading

Tracked further here:

barneygale reacted with thumbs up emoji
@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@nineteendo
Copy link
ContributorAuthor

nineteendo commentedMar 24, 2024
edited
Loading

Hmm, looks likeNone should raise aTypeError and not aValueError. That was unexpected.

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

Copy link
Contributor

@barneygalebarneygale left a 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]==sepforpinpaths)

Could you add a news blurb?

@bedevere-app
Copy link

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 phraseI have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@nineteendo
Copy link
ContributorAuthor

Barneygale, I have made the requested changes; please review again.

@bedevere-app
Copy link

Thanks for making the requested changes!

@barneygale: please review the changes made to this pull request.

@nineteendonineteendo marked this pull request as draftMarch 26, 2024 20:42
@nineteendonineteendo marked this pull request as ready for reviewMarch 26, 2024 21:12
@nineteendo
Copy link
ContributorAuthor

Eh, there seems to be a bug with @bedevere-app:

  • I converted this issue to a draft & back
  • bedevere-app added "awaiting review" & removed "awaiting change review".

Not entirely sure where to report that...

@nineteendonineteendo marked this pull request as draftMarch 28, 2024 07:43
@nineteendonineteendo marked this pull request as ready for reviewMarch 28, 2024 10:14
@nineteendonineteendo marked this pull request as draftMarch 28, 2024 14:36
@barneygale
Copy link
Contributor

Don't worry about makingcommonpath() a little slower if you're fixing a bug, that's no problem. You don't need to compensate for it by speeding up other methods! Those speed-ups look nice, but I think they might be easier to review in their own PR, if that's no trouble? Thanks!

nineteendo reacted with thumbs up emoji

@nineteendo
Copy link
ContributorAuthor

I was simply refactoring the other functions to make them more readable, while waiting for suggestions.
But, must I put the bug fixes forntpath.commonpath &posixpath.realpath (coming up) in separate pull requests?

@barneygale
Copy link
Contributor

Yes please, separate PRs for separate changes makes each one easier to review.

Note that we don't accept changes thatonly 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?

@nineteendonineteendo deleted the fix-commonpath branchMarch 28, 2024 18:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@barneygalebarneygaleAwaiting requested review from barneygale

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@nineteendo@barneygale

[8]ページ先頭

©2009-2025 Movatter.jp