Title: GH-127381: pathlib ABCs: remove `case_sensitive` argument by barneygale · Pull Request #131024 · python/cpython · GitHub
Open Graph Title: GH-127381: pathlib ABCs: remove `case_sensitive` argument by barneygale · Pull Request #131024 · python/cpython
X Title: GH-127381: pathlib ABCs: remove `case_sensitive` argument by barneygale · Pull Request #131024 · python/cpython
Description: Remove the case_sensitive argument from _JoinablePath.full_match() and _ReadablePath.glob(). Using a non-native case sensitivity forces the use of "case-pedantic" globbing, where we iterdir() even for non-wildcard pattern segments. But it's hard to know when to enable this mode, as case-sensitivity can vary by directory, so _PathParser.normcase() doesn't always give the full picture. The Path.glob() implementation is forced to make an educated guess, but we can avoid the issue in the ABCs by dropping the case_sensitive argument. (I probably shouldn't have added this argument in Path.glob() in the first place!) Also drop support for _ReadablePath.glob(recurse_symlinks=False), which makes recursive globbing much slower. No change to the public pathlib classes. Issue: gh-127381
Open Graph Description: Remove the case_sensitive argument from _JoinablePath.full_match() and _ReadablePath.glob(). Using a non-native case sensitivity forces the use of "case-pedantic" globbing, where we iterd...
X Description: Remove the case_sensitive argument from _JoinablePath.full_match() and _ReadablePath.glob(). Using a non-native case sensitivity forces the use of "case-pedantic" globbing, where ...
Opengraph URL: https://github.com/python/cpython/pull/131024
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e778dfd8-ad5e-8f6d-b60f-44c01174eb3f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 89D2:C419C:AC22D4:E267F8:696B56A4 |
| html-safe-nonce | 44c75734f51b72d556fbe52b7404f381fda4d3ee702cdf4c67f3a6d73d031f1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUQyOkM0MTlDOkFDMjJENDpFMjY3Rjg6Njk2QjU2QTQiLCJ2aXNpdG9yX2lkIjoiNjI1MjU0MTQyNDgxMzQzMDQzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b09b66611480ed57f2a5d51a2159e71ce8daeae4e9b05c064750f2671a1c0c44 |
| hovercard-subject-tag | pull_request:2380851887 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/131024/files |
| twitter:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| og:image:alt | Remove the case_sensitive argument from _JoinablePath.full_match() and _ReadablePath.glob(). Using a non-native case sensitivity forces the use of "case-pedantic" globbing, where we iterd... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width