Title: `pathlib.WindowsPath.glob()` preserves case of literal pattern segments · Issue #104114 · python/cpython · GitHub
Open Graph Title: `pathlib.WindowsPath.glob()` preserves case of literal pattern segments · Issue #104114 · python/cpython
X Title: `pathlib.WindowsPath.glob()` preserves case of literal pattern segments · Issue #104114 · python/cpython
Description: When pathlib.WindowsPath.glob() evaluates a literal (non-wildcard) pattern segment, it returns paths using the case of the pattern segment, rather than the real filesystem case. This problem does not affect segments involving * or ** wil...
Open Graph Description: When pathlib.WindowsPath.glob() evaluates a literal (non-wildcard) pattern segment, it returns paths using the case of the pattern segment, rather than the real filesystem case. This problem does n...
X Description: When pathlib.WindowsPath.glob() evaluates a literal (non-wildcard) pattern segment, it returns paths using the case of the pattern segment, rather than the real filesystem case. This problem does n...
Opengraph URL: https://github.com/python/cpython/issues/104114
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`pathlib.WindowsPath.glob()` preserves case of literal pattern segments","articleBody":"When `pathlib.WindowsPath.glob()` evaluates a literal (non-wildcard) pattern segment, it returns paths using the case of the pattern segment, rather than the real filesystem case. This problem does not affect segments involving `*` or `**` wildcards.\r\n\r\n```python\r\n\u003e\u003e\u003e from pathlib import WindowsPath\r\n\u003e\u003e\u003e next(WindowsPath().glob('LIB/PATHLIB.*'))\r\nWindowsPath('LIB/pathlib.py') # 'LIB' should be 'Lib'\r\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104116\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/barneygale","@type":"Person","name":"barneygale"},"datePublished":"2023-05-03T01:57:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/104114/cpython/issues/104114"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:72bf9ad6-777a-2b5d-ac71-28581179e7c8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8C8:280F84:104CADE:16C8030:696A4194 |
| html-safe-nonce | fc68c207afae8722e0fd5c527269a64c7815b5dabbe64346069069838637a065 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEM4OjI4MEY4NDoxMDRDQURFOjE2QzgwMzA6Njk2QTQxOTQiLCJ2aXNpdG9yX2lkIjoiMTk2NDEwMTg5OTI4MjY5NDU0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6331ef2544a69e61548bf3aee0c009e96e7227df7d4aec26ca052afd3d1df57a |
| hovercard-subject-tag | issue:1693304267 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/104114/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fefc8cb11cbdf05093d0dc1087fca6d9e68f886776068c204bb30f3eb20436ae/python/cpython/issues/104114 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fefc8cb11cbdf05093d0dc1087fca6d9e68f886776068c204bb30f3eb20436ae/python/cpython/issues/104114 |
| og:image:alt | When pathlib.WindowsPath.glob() evaluates a literal (non-wildcard) pattern segment, it returns paths using the case of the pattern segment, rather than the real filesystem case. This problem does n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | barneygale |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width