◐ Shell
clean mode source ↗

gh-104484: Add parameter @case_sensitive to pathlib.PurePath.match() function by thirumurugan-git · Pull Request #104565 · python/cpython

@bedevere-bot

@ghost

All commit authors signed the Contributor License Agreement.
CLA signed

@barneygale

Thanks for looking at this! The default value of case_sensitive should be None, which means "use platform-specific rules", i.e. case-sensitive on Posix and case-insensitive on Windows. See the implementation in glob().

Could you also add tests please? I think they'll show that your current patch doesn't enable case-sensitive matching on Windows, because the implementation is still working with the case-normalized parts.

barneygale

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking better! Could you also document the new argument in pathlib.rst? Thanks!

@bedevere-bot

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 I 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.

@thirumurugan-git

I have made the requested changes; please review again.

@bedevere-bot

Thanks for making the requested changes!

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

barneygale

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Pretty close now. Could you add an entry to the 3.12 "What's New" document? Apparently I forgot to add a paragraph there for the addition of case_sensitive to glob() and rglob() - if you could mention all three in a single bullet point I'd be much obliged!

@bedevere-bot

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 I 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.

And if you don't make the requested changes, you will be poked with soft cushions!

@thirumurugan-git

the requested changes; please review again.

barneygale

Co-authored-by: Barney Gale <barney.gale@gmail.com>
…6KxL6.rst

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>

@thirumurugan-git

I have made the requested changes; please review again

@bedevere-bot

Thanks for making the requested changes!

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

barneygale

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing, otherwise LGTM.

@bedevere-bot

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 I 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.

@thirumurugan-git

I have made the requested changes; please review again.

@bedevere-bot

Thanks for making the requested changes!

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

barneygale

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for working on this.

carljm added a commit to carljm/cpython that referenced this pull request

May 18, 2023