René's URL Explorer Experiment


Title: bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a path by barneygale · Pull Request #25264 · python/cpython · GitHub

Open Graph Title: bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a path by barneygale · Pull Request #25264 · python/cpython

X Title: bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a path by barneygale · Pull Request #25264 · python/cpython

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

Open Graph Description: Removes a pathlib-specific implementation of realpath() that's mostly copied from ntpath and posixpath. https://bugs.python.org/issue43757

X Description: Removes a pathlib-specific implementation of realpath() that's mostly copied from ntpath and posixpath. https://bugs.python.org/issue43757

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:9f91bb31-fb75-a155-6ff0-47c48c3a8934
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB29E:4CEB4:881CAE:B8C6A7:6969DDB4
html-safe-nonce044e58ad8aa651a2c2b81926e5345205d0625220f5ab7060194da41e4e0ba265
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjlFOjRDRUI0Ojg4MUNBRTpCOEM2QTc6Njk2OUREQjQiLCJ2aXNpdG9yX2lkIjoiMjUwNDYwNjAxNDMxMjY2ODU5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2b07ad7040d113e12ea018339fed8a2aa306b397373a605771480a124757e5ce
hovercard-subject-tagpull_request:611045838
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/25264/commits
twitter:imagehttps://opengraph.githubassets.com/0510868b25a2e859e2b0552510fc0a1f8c995f4e151c714f2f7e8922bb44aede/python/cpython/pull/25264
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0510868b25a2e859e2b0552510fc0a1f8c995f4e151c714f2f7e8922bb44aede/python/cpython/pull/25264
og:image:altRemoves a pathlib-specific implementation of realpath() that's mostly copied from ntpath and posixpath. https://bugs.python.org/issue43757
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
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
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/25264/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F25264%2Fcommits
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%2F25264%2Fcommits
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/25264/commits
Reloadhttps://github.com/python/cpython/pull/25264/commits
Reloadhttps://github.com/python/cpython/pull/25264/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/25264/commits
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/25264/commits
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
zoobahttps://github.com/zooba
python:masterhttps://github.com/python/cpython/tree/master
barneygale:bpo-43757-accessor-resolvehttps://github.com/barneygale/cpython/tree/bpo-43757-accessor-resolve
Conversationhttps://github.com/python/cpython/pull/25264
Commits23 (23)https://github.com/python/cpython/pull/25264/commits
Checkshttps://github.com/python/cpython/pull/25264/checks
Files changedhttps://github.com/python/cpython/pull/25264/files
bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a pathhttps://github.com/python/cpython/pull/25264/commits#top
zoobahttps://github.com/zooba
python:masterhttps://github.com/python/cpython/tree/master
barneygale:bpo-43757-accessor-resolvehttps://github.com/barneygale/cpython/tree/bpo-43757-accessor-resolve
bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a pathhttps://github.com/python/cpython/pull/25264/commits/164dbfd3f3a484eb32eabb60d893ae19714043ce
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
164dbfdhttps://github.com/python/cpython/pull/25264/commits/164dbfd3f3a484eb32eabb60d893ae19714043ce
https://github.com/python/cpython/tree/164dbfd3f3a484eb32eabb60d893ae19714043ce
Adjust `os.path.realpath` to match `pathlib.Path.resolve()` behaviour when a new `strict=True` keyword-only argument is passed.https://github.com/python/cpython/pull/25264/commits/2894e0a21a84e00b2959ca42f0e109a61fdfad2d
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
2894e0ahttps://github.com/python/cpython/pull/25264/commits/2894e0a21a84e00b2959ca42f0e109a61fdfad2d
https://github.com/python/cpython/tree/2894e0a21a84e00b2959ca42f0e109a61fdfad2d
Call `os.stat()` to raise `OSError(errno.ELOOP, ...)`.https://github.com/python/cpython/pull/25264/commits/495bd8b483a91d6f2a0969de179b7d5ec6770ac3
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
495bd8bhttps://github.com/python/cpython/pull/25264/commits/495bd8b483a91d6f2a0969de179b7d5ec6770ac3
https://github.com/python/cpython/tree/495bd8b483a91d6f2a0969de179b7d5ec6770ac3
Remove unused importhttps://github.com/python/cpython/pull/25264/commits/492c66ba004be9814e61fc3f180e5bb6d8f0f018
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
492c66bhttps://github.com/python/cpython/pull/25264/commits/492c66ba004be9814e61fc3f180e5bb6d8f0f018
https://github.com/python/cpython/tree/492c66ba004be9814e61fc3f180e5bb6d8f0f018
Stop ignoring ERROR_CANT_RESOLVE_FILENAME error in _getfinalpathname_nonstrict()https://github.com/python/cpython/pull/25264/commits/c8bac15402acdc9fbd6034b37d11642c86840bdf
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
c8bac15https://github.com/python/cpython/pull/25264/commits/c8bac15402acdc9fbd6034b37d11642c86840bdf
https://github.com/python/cpython/tree/c8bac15402acdc9fbd6034b37d11642c86840bdf
Fix symlink detection and `posixpath` tests.https://github.com/python/cpython/pull/25264/commits/fe69688bceb22644195a69394306dc93ff39576a
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
fe69688https://github.com/python/cpython/pull/25264/commits/fe69688bceb22644195a69394306dc93ff39576a
https://github.com/python/cpython/tree/fe69688bceb22644195a69394306dc93ff39576a
Raise RuntimeError in Path.resolve() if realpath() raises ERROR_CANT_RESOLVE_FILENAMEhttps://github.com/python/cpython/pull/25264/commits/4114be91f6f0c5db26749807d223bdbb7a40536b
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
4114be9https://github.com/python/cpython/pull/25264/commits/4114be91f6f0c5db26749807d223bdbb7a40536b
https://github.com/python/cpython/tree/4114be91f6f0c5db26749807d223bdbb7a40536b
Remove unused importhttps://github.com/python/cpython/pull/25264/commits/2a594ced11da760695e9d8601d7f2023ef0789bd
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
2a594cehttps://github.com/python/cpython/pull/25264/commits/2a594ced11da760695e9d8601d7f2023ef0789bd
https://github.com/python/cpython/tree/2a594ced11da760695e9d8601d7f2023ef0789bd
Make documentation a little more general to accurately cover Windows.https://github.com/python/cpython/pull/25264/commits/fb36a40db972571cf37d42f392eb4df3ae328db8
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
fb36a40https://github.com/python/cpython/pull/25264/commits/fb36a40db972571cf37d42f392eb4df3ae328db8
https://github.com/python/cpython/tree/fb36a40db972571cf37d42f392eb4df3ae328db8
First pass on fixing `ntpath` testshttps://github.com/python/cpython/pull/25264/commits/0634486f61c022964a7a444f25eab00456041e2e
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
0634486https://github.com/python/cpython/pull/25264/commits/0634486f61c022964a7a444f25eab00456041e2e
https://github.com/python/cpython/tree/0634486f61c022964a7a444f25eab00456041e2e
Second pass on fixing `ntpath` testshttps://github.com/python/cpython/pull/25264/commits/600fc9e7d1b2244ddd28b0e8fa159feab87a84e5
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
600fc9ehttps://github.com/python/cpython/pull/25264/commits/600fc9e7d1b2244ddd28b0e8fa159feab87a84e5
https://github.com/python/cpython/tree/600fc9e7d1b2244ddd28b0e8fa159feab87a84e5
Fix indentationhttps://github.com/python/cpython/pull/25264/commits/047471c1b445f68efb02fc58b15e42a31bf3ffbb
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
047471chttps://github.com/python/cpython/pull/25264/commits/047471c1b445f68efb02fc58b15e42a31bf3ffbb
https://github.com/python/cpython/tree/047471c1b445f68efb02fc58b15e42a31bf3ffbb
Copy description of 'strict' from pathlib.https://github.com/python/cpython/pull/25264/commits/bf3a3f793cea27fdd1b549b877286df5932c4527
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
bf3a3f7https://github.com/python/cpython/pull/25264/commits/bf3a3f793cea27fdd1b549b877286df5932c4527
https://github.com/python/cpython/tree/bf3a3f793cea27fdd1b549b877286df5932c4527
Add testshttps://github.com/python/cpython/pull/25264/commits/f839db022be47b6d252ec4ba4cf83be53f1c3122
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
f839db0https://github.com/python/cpython/pull/25264/commits/f839db022be47b6d252ec4ba4cf83be53f1c3122
https://github.com/python/cpython/tree/f839db022be47b6d252ec4ba4cf83be53f1c3122
Add NEWShttps://github.com/python/cpython/pull/25264/commits/2d30bb783c1b8478f95f68ab568d14906f97c528
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
2d30bb7https://github.com/python/cpython/pull/25264/commits/2d30bb783c1b8478f95f68ab568d14906f97c528
https://github.com/python/cpython/tree/2d30bb783c1b8478f95f68ab568d14906f97c528
Fix ntpath tests (pass 1)https://github.com/python/cpython/pull/25264/commits/68c6533511e564e5d7d633e854b3ca4ef5035541
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
68c6533https://github.com/python/cpython/pull/25264/commits/68c6533511e564e5d7d633e854b3ca4ef5035541
https://github.com/python/cpython/tree/68c6533511e564e5d7d633e854b3ca4ef5035541
Add some notes on OS differenceshttps://github.com/python/cpython/pull/25264/commits/9fa60eb9ec059e164eda1e3010f87d39627a5eaa
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
9fa60ebhttps://github.com/python/cpython/pull/25264/commits/9fa60eb9ec059e164eda1e3010f87d39627a5eaa
https://github.com/python/cpython/tree/9fa60eb9ec059e164eda1e3010f87d39627a5eaa
Split NEWShttps://github.com/python/cpython/pull/25264/commits/f979947a207015bdb87dfdc5f3f1fa316daca66b
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
f979947https://github.com/python/cpython/pull/25264/commits/f979947a207015bdb87dfdc5f3f1fa316daca66b
https://github.com/python/cpython/tree/f979947a207015bdb87dfdc5f3f1fa316daca66b
Do not suppress initial ERROR_CANT_RESOLVE_FILENAME error in non-strict mode.https://github.com/python/cpython/pull/25264/commits/a82bc185699ea1550fd9588ab668ad7674a25544
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
a82bc18https://github.com/python/cpython/pull/25264/commits/a82bc185699ea1550fd9588ab668ad7674a25544
https://github.com/python/cpython/tree/a82bc185699ea1550fd9588ab668ad7674a25544
realpath(): only raise OSError for symlink loops in strict modehttps://github.com/python/cpython/pull/25264/commits/86c318c61c8b9eb29e6f609af46fe25dcfd3ea61
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
86c318chttps://github.com/python/cpython/pull/25264/commits/86c318c61c8b9eb29e6f609af46fe25dcfd3ea61
https://github.com/python/cpython/tree/86c318c61c8b9eb29e6f609af46fe25dcfd3ea61
Fix test_ntpath (pass 1)https://github.com/python/cpython/pull/25264/commits/7362f7e8fa68924321d76456ec4210083acab0a1
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
7362f7ehttps://github.com/python/cpython/pull/25264/commits/7362f7e8fa68924321d76456ec4210083acab0a1
https://github.com/python/cpython/tree/7362f7e8fa68924321d76456ec4210083acab0a1
Fix test_ntpath (pass 2)https://github.com/python/cpython/pull/25264/commits/72147c5d1955e21c8dba99c22ab8470b993917d7
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
72147c5https://github.com/python/cpython/pull/25264/commits/72147c5d1955e21c8dba99c22ab8470b993917d7
https://github.com/python/cpython/tree/72147c5d1955e21c8dba99c22ab8470b993917d7
Split up exception handling in resolve() for greater clarity.https://github.com/python/cpython/pull/25264/commits/df04357fafe104d9114a245c24dbea92b2b5e60b
https://github.com/barneygale
barneygalehttps://github.com/python/cpython/commits?author=barneygale
df04357https://github.com/python/cpython/pull/25264/commits/df04357fafe104d9114a245c24dbea92b2b5e60b
https://github.com/python/cpython/tree/df04357fafe104d9114a245c24dbea92b2b5e60b
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.