Title: bpo-36898: Add parameter @case_sensitive to glob and rglob in pathlib by monchin · Pull Request #13274 · python/cpython · GitHub
Open Graph Title: bpo-36898: Add parameter @case_sensitive to glob and rglob in pathlib by monchin · Pull Request #13274 · python/cpython
X Title: bpo-36898: Add parameter @case_sensitive to glob and rglob in pathlib by monchin · Pull Request #13274 · python/cpython
Description: In pathlib, I add a parameter case_sensitive to glob and rglob. Sometimes the extension would be in upper case but sometimes it would be lower case, for example: *.tif and *.TIF. So the parameter case_sensitive may be useful in some cases. Usage example: In [1]: from pathlib import Path In [2]: path = Path('.') In [3]: for each_file in path.glob('*.tif'): ...: print(each_file) ...: a.tif b.tif In [4]: for each_file in path.rglob('*.TIF'): ...: print(each_file) ...: c.TIF TEST/d.TIF In [5]: for each_file in path.glob('*.TIF', case_sensitive=False): ...: print(each_file) ...: a.tif c.TIF b.tif In [6]: for each_file in path.rglob('*.TIF', case_sensitive=False): ...: print(each_file) ...: a.tif c.TIF b.tif TEST/d.TIF TEST/e.tif https://bugs.python.org/issue36898
Open Graph Description: In pathlib, I add a parameter case_sensitive to glob and rglob. Sometimes the extension would be in upper case but sometimes it would be lower case, for example: *.tif and *.TIF. So the parameter c...
X Description: In pathlib, I add a parameter case_sensitive to glob and rglob. Sometimes the extension would be in upper case but sometimes it would be lower case, for example: *.tif and *.TIF. So the parameter c...
Opengraph URL: https://github.com/python/cpython/pull/13274
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b1349f3b-a5ec-62fb-91cc-07e387054de9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EADC:CD10D:31F266:3FF912:696ADD89 |
| html-safe-nonce | 50be7543b68cd63bd99308414b2e5428df6335daac5b675bb6ccb17d677a0dd2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQURDOkNEMTBEOjMxRjI2NjozRkY5MTI6Njk2QUREODkiLCJ2aXNpdG9yX2lkIjoiNDA1Njg3MTMwMTc2ODk5NDE4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 006500794352e3a79e80621361b9c04fd2a827e6adda77aec05cd2ec5529f861 |
| hovercard-subject-tag | pull_request:278145849 |
| 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/13274/files |
| twitter:image | https://avatars.githubusercontent.com/u/18521800?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/18521800?s=400&v=4 |
| og:image:alt | In pathlib, I add a parameter case_sensitive to glob and rglob. Sometimes the extension would be in upper case but sometimes it would be lower case, for example: *.tif and *.TIF. So the parameter c... |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width