Title: `glob.glob('**/**', recursive=True)` yields duplicate results · Issue #104269 · python/cpython · GitHub
Open Graph Title: `glob.glob('**/**', recursive=True)` yields duplicate results · Issue #104269 · python/cpython
X Title: `glob.glob('**/**', recursive=True)` yields duplicate results · Issue #104269 · python/cpython
Description: Calling glob.glob(pattern, recursive=True), where pattern contains two or more **/ segments, can yield the same paths multiple times: >>> import glob >>> len(glob.glob('**/**', recursive=True)) 314206 >>> len(set(glob.glob('**/**', recur...
Open Graph Description: Calling glob.glob(pattern, recursive=True), where pattern contains two or more **/ segments, can yield the same paths multiple times: >>> import glob >>> len(glob.glob('**/**', recursive=True)) 314...
X Description: Calling glob.glob(pattern, recursive=True), where pattern contains two or more **/ segments, can yield the same paths multiple times: >>> import glob >>> len(glob.glob('**/**&...
Opengraph URL: https://github.com/python/cpython/issues/104269
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`glob.glob('**/**', recursive=True)` yields duplicate results","articleBody":"Calling `glob.glob(pattern, recursive=True)`, where *pattern* contains two or more `**/` segments, can yield the same paths multiple times:\r\n\r\n```python\r\n\u003e\u003e\u003e import glob\r\n\u003e\u003e\u003e len(glob.glob('**/**', recursive=True))\r\n314206\r\n\u003e\u003e\u003e len(set(glob.glob('**/**', recursive=True)))\r\n44849\r\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-105406\n* gh-117757\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/barneygale","@type":"Person","name":"barneygale"},"datePublished":"2023-05-07T17:00:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/104269/cpython/issues/104269"}
| 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:330e9141-2653-ecf7-9664-e03f632f3e17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 987C:28AE23:2BA8073:3AEB69E:696AEA83 |
| html-safe-nonce | cc72a0b6abc894eeb6c66c256ca7961c88b2e797a4c6388212032b4488abce50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODdDOjI4QUUyMzoyQkE4MDczOjNBRUI2OUU6Njk2QUVBODMiLCJ2aXNpdG9yX2lkIjoiMjk2OTMxNDg3NDM3NTIwMzQ1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bc4764e6f23ae1a242663df1fe480b071c65943ae8c7f82c708b4bbeb6d3cf6e |
| hovercard-subject-tag | issue:1699149026 |
| 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/104269/issue_layout |
| twitter:image | https://opengraph.githubassets.com/214ca93f116096ba23c15752c41fb9857f1864f961e590ee8560b5b42fb7b9ae/python/cpython/issues/104269 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/214ca93f116096ba23c15752c41fb9857f1864f961e590ee8560b5b42fb7b9ae/python/cpython/issues/104269 |
| og:image:alt | Calling glob.glob(pattern, recursive=True), where pattern contains two or more **/ segments, can yield the same paths multiple times: >>> import glob >>> len(glob.glob('**/**', recursive=True)) 314... |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width