René's URL Explorer Experiment


Title: GH-123599: `url2pathname()`: handle authority section in file URL by barneygale · Pull Request #126844 · python/cpython · GitHub

Open Graph Title: GH-123599: `url2pathname()`: handle authority section in file URL by barneygale · Pull Request #126844 · python/cpython

X Title: GH-123599: `url2pathname()`: handle authority section in file URL by barneygale · Pull Request #126844 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: In urllib.request.url2pathname(), if the authority resolves to the current host, discard it. If an authority is present but resolves somewhere else, then on Windows we return a UNC path (as before)...

X Description: In urllib.request.url2pathname(), if the authority resolves to the current host, discard it. If an authority is present but resolves somewhere else, then on Windows we return a UNC path (as before)...

Opengraph URL: https://github.com/python/cpython/pull/126844

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:5620d4ff-82ba-0180-236e-a96ad44e2801
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB0EA:29068E:4014B:5450B:6B021FCD
html-safe-nonce3054d2c46a1f6ab7467dd2d9df101dd1c2156e489e5462191e8724592250c77f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEVBOjI5MDY4RTo0MDE0Qjo1NDUwQjo2QjAyMUZDRCIsInZpc2l0b3JfaWQiOiI0NTE5NDMzNDg1NjY0MDAxOTk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9485c540f383496b9ae494deab4dd669e08e5f861dea232ef44618082838d71e
hovercard-subject-tagpull_request:2180610025
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/126844/commits
twitter:imagehttps://opengraph.githubassets.com/222c02977acf435fda4387246c7775e4f69f4b26b416b02d81b16f2ecb2a721f/python/cpython/pull/126844
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/222c02977acf435fda4387246c7775e4f69f4b26b416b02d81b16f2ecb2a721f/python/cpython/pull/126844
og:image:altIn urllib.request.url2pathname(), if the authority resolves to the current host, discard it. If an authority is present but resolves somewhere else, then on Windows we return a UNC path (as before)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/126844/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F126844%2Fcommits
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F126844%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/126844/commits
Reloadhttps://github.com/python/cpython/pull/126844/commits
Reloadhttps://github.com/python/cpython/pull/126844/commits
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-126838https://github.com/barneygale/cpython/tree/gh-126838
Conversationhttps://github.com/python/cpython/pull/126844
Commits26 (26)https://github.com/python/cpython/pull/126844/commits
Checkshttps://github.com/python/cpython/pull/126844/checks
Files changedhttps://github.com/python/cpython/pull/126844/files
GH-123599: url2pathname(): handle authority section in file URLhttps://github.com/python/cpython/pull/126844/commits#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-126838https://github.com/barneygale/cpython/tree/gh-126838
GH-126838: `url2pathname()`: handle non-empty authority section on POSIXhttps://github.com/python/cpython/pull/126844/commits/50231c5752206b5169bc261ba7c563db6231e048
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
50231c5https://github.com/python/cpython/pull/126844/commits/50231c5752206b5169bc261ba7c563db6231e048
https://github.com/python/cpython/tree/50231c5752206b5169bc261ba7c563db6231e048
Fix testhttps://github.com/python/cpython/pull/126844/commits/9032105dfa6e1cb7bd64cafb4e01f9d9804149eb
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
9032105https://github.com/python/cpython/pull/126844/commits/9032105dfa6e1cb7bd64cafb4e01f9d9804149eb
https://github.com/python/cpython/tree/9032105dfa6e1cb7bd64cafb4e01f9d9804149eb
Undo unnecessary changehttps://github.com/python/cpython/pull/126844/commits/b91afca015c41f826078718a51a44aad6451f1ec
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
b91afcahttps://github.com/python/cpython/pull/126844/commits/b91afca015c41f826078718a51a44aad6451f1ec
https://github.com/python/cpython/tree/b91afca015c41f826078718a51a44aad6451f1ec
Fix Windows testshttps://github.com/python/cpython/pull/126844/commits/4b320b855025757dacd658cf553ce25bf42921ee
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
4b320b8https://github.com/python/cpython/pull/126844/commits/4b320b855025757dacd658cf553ce25bf42921ee
https://github.com/python/cpython/tree/4b320b855025757dacd658cf553ce25bf42921ee
More test fixeshttps://github.com/python/cpython/pull/126844/commits/0cc3a673fe7776630a8ccd6951a2085dd0f51137
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
0cc3a67https://github.com/python/cpython/pull/126844/commits/0cc3a673fe7776630a8ccd6951a2085dd0f51137
https://github.com/python/cpython/tree/0cc3a673fe7776630a8ccd6951a2085dd0f51137
Merge branch 'main' into gh-126838https://github.com/python/cpython/pull/126844/commits/96fdb01718c7ded3e245077a3ca1777b8ce80f5e
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
96fdb01https://github.com/python/cpython/pull/126844/commits/96fdb01718c7ded3e245077a3ca1777b8ce80f5e
https://github.com/python/cpython/tree/96fdb01718c7ded3e245077a3ca1777b8ce80f5e
Merge branch 'main' into gh-126838https://github.com/python/cpython/pull/126844/commits/52010ca1087b276aec4b31c712667000b0e44681
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
52010cahttps://github.com/python/cpython/pull/126844/commits/52010ca1087b276aec4b31c712667000b0e44681
https://github.com/python/cpython/tree/52010ca1087b276aec4b31c712667000b0e44681
Merge branch 'main' into gh-126838https://github.com/python/cpython/pull/126844/commits/f64ca0d3f3f07f025d94d1e5033b56bb57fcd65a
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
f64ca0dhttps://github.com/python/cpython/pull/126844/commits/f64ca0d3f3f07f025d94d1e5033b56bb57fcd65a
https://github.com/python/cpython/tree/f64ca0d3f3f07f025d94d1e5033b56bb57fcd65a
Updatezhttps://github.com/python/cpython/pull/126844/commits/ab800ab256dca8f67485154c0a701542b4c9bd24
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
ab800abhttps://github.com/python/cpython/pull/126844/commits/ab800ab256dca8f67485154c0a701542b4c9bd24
https://github.com/python/cpython/tree/ab800ab256dca8f67485154c0a701542b4c9bd24
Fix tests #1https://github.com/python/cpython/pull/126844/commits/40d346a901952b37b8398931bdf653929de38927
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
40d346ahttps://github.com/python/cpython/pull/126844/commits/40d346a901952b37b8398931bdf653929de38927
https://github.com/python/cpython/tree/40d346a901952b37b8398931bdf653929de38927
Merge branch 'main' into gh-126838https://github.com/python/cpython/pull/126844/commits/69807b4a83e198b77cdc6a600f791ab06e29d6b6
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
69807b4https://github.com/python/cpython/pull/126844/commits/69807b4a83e198b77cdc6a600f791ab06e29d6b6
https://github.com/python/cpython/tree/69807b4a83e198b77cdc6a600f791ab06e29d6b6
Restore previous Windows behaviourhttps://github.com/python/cpython/pull/126844/commits/79f5d05db3ca06e65a7e912fe4fadd60b006de22
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
79f5d05https://github.com/python/cpython/pull/126844/commits/79f5d05db3ca06e65a7e912fe4fadd60b006de22
https://github.com/python/cpython/tree/79f5d05db3ca06e65a7e912fe4fadd60b006de22
Fix WASI, docshttps://github.com/python/cpython/pull/126844/commits/bb69e493a5e943e97c98e7a590e73ba1ec1a5fa4
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
bb69e49https://github.com/python/cpython/pull/126844/commits/bb69e493a5e943e97c98e7a590e73ba1ec1a5fa4
https://github.com/python/cpython/tree/bb69e493a5e943e97c98e7a590e73ba1ec1a5fa4
wasi yousa problem?https://github.com/python/cpython/pull/126844/commits/7adddbf4f369dade5b99af2c0313a6e2d0319f9f
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
7adddbfhttps://github.com/python/cpython/pull/126844/commits/7adddbf4f369dade5b99af2c0313a6e2d0319f9f
https://github.com/python/cpython/tree/7adddbf4f369dade5b99af2c0313a6e2d0319f9f
Merge branch 'main' into gh-126838https://github.com/python/cpython/pull/126844/commits/b4fa510215dfa8ad9f0fe3d0cf77d7a2a9ce0f4b
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
b4fa510https://github.com/python/cpython/pull/126844/commits/b4fa510215dfa8ad9f0fe3d0cf77d7a2a9ce0f4b
https://github.com/python/cpython/tree/b4fa510215dfa8ad9f0fe3d0cf77d7a2a9ce0f4b
Update whatsnewhttps://github.com/python/cpython/pull/126844/commits/b5e54604ac1dc44b17f88019ee0611c3da30323a
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
b5e5460https://github.com/python/cpython/pull/126844/commits/b5e54604ac1dc44b17f88019ee0611c3da30323a
https://github.com/python/cpython/tree/b5e54604ac1dc44b17f88019ee0611c3da30323a
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/126844/commits/67fccd53f6221bd1f6d0a684ce5732b7b866c640
barneygalehttps://github.com/python/cpython/commits?author=barneygale
AA-Turnerhttps://github.com/python/cpython/commits?author=AA-Turner
67fccd5https://github.com/python/cpython/pull/126844/commits/67fccd53f6221bd1f6d0a684ce5732b7b866c640
https://github.com/python/cpython/tree/67fccd53f6221bd1f6d0a684ce5732b7b866c640
Address some review feedbackhttps://github.com/python/cpython/pull/126844/commits/89ddf7f3cf8d20ae21572b8bdcd7006bccdad2d7
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
89ddf7fhttps://github.com/python/cpython/pull/126844/commits/89ddf7f3cf8d20ae21572b8bdcd7006bccdad2d7
https://github.com/python/cpython/tree/89ddf7f3cf8d20ae21572b8bdcd7006bccdad2d7
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/126844/commits/d327f34f7afc7578c8da912e74373e6541bb1832
barneygalehttps://github.com/python/cpython/commits?author=barneygale
picnixzhttps://github.com/python/cpython/commits?author=picnixz
d327f34https://github.com/python/cpython/pull/126844/commits/d327f34f7afc7578c8da912e74373e6541bb1832
https://github.com/python/cpython/tree/d327f34f7afc7578c8da912e74373e6541bb1832
Swap .. versionchanged:: orderhttps://github.com/python/cpython/pull/126844/commits/313a68f23109d0b4fa9f3423a916583917f6ab1a
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
313a68fhttps://github.com/python/cpython/pull/126844/commits/313a68f23109d0b4fa9f3423a916583917f6ab1a
https://github.com/python/cpython/tree/313a68f23109d0b4fa9f3423a916583917f6ab1a
Add test cases involving portshttps://github.com/python/cpython/pull/126844/commits/e1f6d10db818d6fa8c25defc3df5bef78eff986c
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
e1f6d10https://github.com/python/cpython/pull/126844/commits/e1f6d10db818d6fa8c25defc3df5bef78eff986c
https://github.com/python/cpython/tree/e1f6d10db818d6fa8c25defc3df5bef78eff986c
Add test methods for common posix/windows resultshttps://github.com/python/cpython/pull/126844/commits/c5f5e24715a6eae6cbbc8dec9873e43c45debc37
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
c5f5e24https://github.com/python/cpython/pull/126844/commits/c5f5e24715a6eae6cbbc8dec9873e43c45debc37
https://github.com/python/cpython/tree/c5f5e24715a6eae6cbbc8dec9873e43c45debc37
Windows test fixeshttps://github.com/python/cpython/pull/126844/commits/25521c1775e9f64d0da2ad21cde73e496903d919
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
25521c1https://github.com/python/cpython/pull/126844/commits/25521c1775e9f64d0da2ad21cde73e496903d919
https://github.com/python/cpython/tree/25521c1775e9f64d0da2ad21cde73e496903d919
Restore FileHandler.names and get_names()https://github.com/python/cpython/pull/126844/commits/fa7745691ff9f650e7d6ed07588cf85ea38a1570
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
fa77456https://github.com/python/cpython/pull/126844/commits/fa7745691ff9f650e7d6ed07588cf85ea38a1570
https://github.com/python/cpython/tree/fa7745691ff9f650e7d6ed07588cf85ea38a1570
Docs improvementshttps://github.com/python/cpython/pull/126844/commits/3a506418f9aa6b3f05e5dafc11325709596d5ecb
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
3a50641https://github.com/python/cpython/pull/126844/commits/3a506418f9aa6b3f05e5dafc11325709596d5ecb
https://github.com/python/cpython/tree/3a506418f9aa6b3f05e5dafc11325709596d5ecb
Merge branch 'main' into gh-126838https://github.com/python/cpython/pull/126844/commits/eecff9bc2a8d199fb33fbb9ca2b914d45610490c
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
eecff9bhttps://github.com/python/cpython/pull/126844/commits/eecff9bc2a8d199fb33fbb9ca2b914d45610490c
https://github.com/python/cpython/tree/eecff9bc2a8d199fb33fbb9ca2b914d45610490c
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.