René's URL Explorer Experiment


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, whic...

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

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:bc67209b-3783-6877-25ca-d0f6c11daa28
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF36:D741D:53642:72C02:696961B5
html-safe-nonce5ed3196384c07e66d2074565762073001adec569bc49aaaea02c5600ca975c8b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjM2OkQ3NDFEOjUzNjQyOjcyQzAyOjY5Njk2MUI1IiwidmlzaXRvcl9pZCI6IjgyOTQ2MDY1NDM2NDE5OTM2NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4b0371c28770a9710d7b030ee2075d09e3cf53f99ef58eb73851213acd9ba79d
hovercard-subject-tagpull_request:1335756352
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/104103/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/423e59b672c8bd39e4acbcf9ee66983e4cc63e01991765e66942e99b5d28760b/python/cpython/pull/104103
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/423e59b672c8bd39e4acbcf9ee66983e4cc63e01991765e66942e99b5d28760b/python/cpython/pull/104103
og:image:altThese 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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release669463fcc54773a88c1f5a44eef6b99a5504b9c7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/104103#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F104103
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F104103
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/104103
Reloadhttps://github.com/python/cpython/pull/104103
Reloadhttps://github.com/python/cpython/pull/104103
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/104103
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/104103
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/104103#issue-comment-box
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-104102-optimize-glob-parenthttps://github.com/barneygale/cpython/tree/gh-104102-optimize-glob-parent
GH-104102: Optimize pathlib.Path.glob() handling of ../ pattern segments https://github.com/python/cpython/pull/104103#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-104102-optimize-glob-parenthttps://github.com/barneygale/cpython/tree/gh-104102-optimize-glob-parent
Conversation 6 https://github.com/python/cpython/pull/104103
Commits 4 https://github.com/python/cpython/pull/104103/commits
Checks 0 https://github.com/python/cpython/pull/104103/checks
Files changed https://github.com/python/cpython/pull/104103/files
Please reload this pagehttps://github.com/python/cpython/pull/104103
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023https://github.com/python/cpython/pull/104103#issue-1693004092
Please reload this pagehttps://github.com/python/cpython/pull/104103
Optimize pathlib.Path.glob() handling of ../ pattern segments #104102https://github.com/python/cpython/issues/104102
Please reload this pagehttps://github.com/python/cpython/pull/104103
https://github.com/barneygale
Optimize pathlib.Path.glob() handling of ../ pattern segmentshttps://github.com/python/cpython/pull/104103/commits/f268157234eb4833b0781ad56677c35f7af8383f
f268157https://github.com/python/cpython/pull/104103/commits/f268157234eb4833b0781ad56677c35f7af8383f
https://github.com/barneygale
barneygalehttps://github.com/barneygale
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
May 2, 2023https://github.com/python/cpython/pull/104103#event-9149274204
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 2, 2023https://github.com/python/cpython/pull/104103#event-9149274533
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023https://github.com/python/cpython/pull/104103#event-9149276351
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
May 2, 2023 https://github.com/python/cpython/pull/104103#ref-issue-1692996245
Optimize pathlib.Path.glob() handling of ../ pattern segments #104102 https://github.com/python/cpython/issues/104102
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023 https://github.com/python/cpython/pull/104103#ref-pullrequest-1624516320
GH-81079: Add case_sensitive argument to pathlib.Path.glob() #102710 https://github.com/python/cpython/pull/102710
barneygalehttps://github.com/barneygale
May 2, 2023 22:54https://github.com/python/cpython/pull/104103#commits-pushed-581e8c5
https://github.com/barneygale
Merge branch 'main' intohttps://github.com/python/cpython/pull/104103/commits/581e8c5b77607b0cc7c9ab2392f1598a736f5091
pythongh-104102https://github.com/python/cpython/issues/104102
-optimize-glob-parenthttps://github.com/python/cpython/pull/104103/commits/581e8c5b77607b0cc7c9ab2392f1598a736f5091
581e8c5https://github.com/python/cpython/pull/104103/commits/581e8c5b77607b0cc7c9ab2392f1598a736f5091
https://github.com/barneygale
Fix argument namehttps://github.com/python/cpython/pull/104103/commits/e35153fc93460bd77d35b0a506bf53a80a9ffbe6
e35153fhttps://github.com/python/cpython/pull/104103/commits/e35153fc93460bd77d35b0a506bf53a80a9ffbe6
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
May 2, 2023 https://github.com/python/cpython/pull/104103#pullrequestreview-1409965020
View reviewed changes https://github.com/python/cpython/pull/104103/files/e35153fc93460bd77d35b0a506bf53a80a9ffbe6
Lib/pathlib.pyhttps://github.com/python/cpython/pull/104103/files/e35153fc93460bd77d35b0a506bf53a80a9ffbe6#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
Please reload this pagehttps://github.com/python/cpython/pull/104103
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
May 2, 2023https://github.com/python/cpython/pull/104103#issuecomment-1532244046
Please reload this pagehttps://github.com/python/cpython/pull/104103
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
May 2, 2023 https://github.com/python/cpython/pull/104103#pullrequestreview-1409982099
View reviewed changes https://github.com/python/cpython/pull/104103/files/e35153fc93460bd77d35b0a506bf53a80a9ffbe6
AlexWaygoodhttps://github.com/AlexWaygood
https://github.com/python/cpython/pull/104103#pullrequestreview-1409982099
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/104103
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 2, 2023https://github.com/python/cpython/pull/104103#event-9150401992
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
May 2, 2023https://github.com/python/cpython/pull/104103#event-9150402616
https://github.com/barneygale
Expand testshttps://github.com/python/cpython/pull/104103/commits/6ab6f0f34bc81ef8d720f627d980e9920f5d2cb4
6ab6f0fhttps://github.com/python/cpython/pull/104103/commits/6ab6f0f34bc81ef8d720f627d980e9920f5d2cb4
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023 22:55https://github.com/python/cpython/pull/104103#event-9150433791
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023https://github.com/python/cpython/pull/104103#issuecomment-1532254780
Please reload this pagehttps://github.com/python/cpython/pull/104103
https://github.com/barneygale
barneygalehttps://github.com/barneygale
65a49c6https://github.com/python/cpython/commit/65a49c6553a27cc36eebb4b79f409c3cb4450d8c
May 2, 2023https://github.com/python/cpython/pull/104103#event-9150521382
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
May 2, 2023https://github.com/python/cpython/pull/104103#event-9150521640
carljmhttps://github.com/carljm
May 2, 2023 https://github.com/python/cpython/pull/104103#ref-commit-b9c39e3
https://github.com/carljm
Merge branch 'main' into cached_property_docshttps://github.com/carljm/cpython/commit/b9c39e36dd0e792c860440174814ae546dfa62b1
b9c39e3https://github.com/carljm/cpython/commit/b9c39e36dd0e792c860440174814ae546dfa62b1
pythonGH-104102https://github.com/python/cpython/issues/104102
pythonGH-104103https://github.com/python/cpython/pull/104103
pythonGH-104104https://github.com/python/cpython/issues/104104
pythonGH-104105https://github.com/python/cpython/pull/104105
pythongh-103822https://github.com/python/cpython/issues/103822
pythonGH-103827https://github.com/python/cpython/pull/103827
pythongh-65022https://github.com/python/cpython/issues/65022
python#103892https://github.com/python/cpython/pull/103892
pythonGH-103525https://github.com/python/cpython/issues/103525
pythonGH-103526https://github.com/python/cpython/pull/103526
pythongh-84436https://github.com/python/cpython/issues/84436
pythongh-103962https://github.com/python/cpython/pull/103962
pythongh-103743https://github.com/python/cpython/issues/103743
pythonGH-103744https://github.com/python/cpython/pull/103744
pythongh-102997https://github.com/python/cpython/issues/102997
python#102999https://github.com/python/cpython/pull/102999
pythonGH-103484https://github.com/python/cpython/issues/103484
python#104001https://github.com/python/cpython/pull/104001
python#104081https://github.com/python/cpython/pull/104081
pythongh-102997https://github.com/python/cpython/issues/102997
pythonGH-102998https://github.com/python/cpython/pull/102998
pythonGH-103472https://github.com/python/cpython/issues/103472
python#103473https://github.com/python/cpython/pull/103473
pythongh-88496https://github.com/python/cpython/issues/88496
python#104075https://github.com/python/cpython/pull/104075
pythongh-94673https://github.com/python/cpython/issues/94673
pythongh-104074https://github.com/python/cpython/pull/104074
pythongh-94673https://github.com/python/cpython/issues/94673
pythongh-104072https://github.com/python/cpython/pull/104072
pythongh-104016https://github.com/python/cpython/issues/104016
python#104071https://github.com/python/cpython/pull/104071
pythongh-104057https://github.com/python/cpython/issues/104057
python#104064https://github.com/python/cpython/pull/104064
pythongh-87092https://github.com/python/cpython/issues/87092
python#103988https://github.com/python/cpython/pull/103988
pythongh-97696https://github.com/python/cpython/issues/97696
python#102853https://github.com/python/cpython/pull/102853
pythongh-84436https://github.com/python/cpython/issues/84436
pythongh-104054https://github.com/python/cpython/pull/104054
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 3, 2023 https://github.com/python/cpython/pull/104103#ref-pullrequest-1694583411
GH-90208: Suppress OSError exceptions from pathlib.Path.glob() #104141 https://github.com/python/cpython/pull/104141
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F104103
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/cpython/pull/104103/files/e35153fc93460bd77d35b0a506bf53a80a9ffbe6
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Please reload this pagehttps://github.com/python/cpython/pull/104103
https://github.com/barneygale
https://github.com/AlexWaygood
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.