Title: GH-104102: Optimize `pathlib.Path.glob()` handling of `../` pattern segments by barneygale · Pull Request #104103 · python/cpython · GitHub
Open Graph Title: GH-104102: Optimize `pathlib.Path.glob()` handling of `../` pattern segments by barneygale · Pull Request #104103 · python/cpython
X Title: GH-104102: Optimize `pathlib.Path.glob()` handling of `../` pattern segments by barneygale · Pull Request #104103 · python/cpython
Description: These segments do not require a stat() call, as the selector's _select_from() method is called after we've established that the parent is a directory. This PR adds a new _ParentSelector class, which is used to evaluate ../ segments rather than _PreciseSelector. Issue: gh-104102
Open Graph Description: These segments do not require a stat() call, as the selector's _select_from() method is called after we've established that the parent is a directory. This PR adds a new _ParentSelector cla...
X Description: These segments do not require a stat() call, as the selector's _select_from() method is called after we've established that the parent is a directory. This PR adds a new _ParentSele...
Opengraph URL: https://github.com/python/cpython/pull/104103
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cdc1b78c-5d95-4960-61e1-11a57b0cb805 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 989C:27157C:895024:B6EE7B:69697BB6 |
| html-safe-nonce | f948462c0b0261d860e4d9945a8dc50e384707fca24c797ac5751b002232c7d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODlDOjI3MTU3Qzo4OTUwMjQ6QjZFRTdCOjY5Njk3QkI2IiwidmlzaXRvcl9pZCI6IjI2MzIyOTI4ODM3NjE4MjI2NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8136450650f1571490383a8dbb9c29f087c96b24df153891b40495a991854183 |
| hovercard-subject-tag | pull_request:1335756352 |
| 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/104103/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 | These segments do not require a stat() call, as the selector's _select_from() method is called after we've established that the parent is a directory. This PR adds a new _ParentSelector cla... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| 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 | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width