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: Removes a pathlib-specific implementation of realpath() that's mostly copied from ntpath and posixpath. https://bugs.python.org/issue43757

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/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:02fde288-7a5c-5012-2792-0dd5e93175c3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC852:2C9A2F:27A615:344834:6969BFBB
html-safe-nonce08828c031ff50a0988b7ca66aba992d20a7a608f213e5744704e77d68ecfbb33
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODUyOjJDOUEyRjoyN0E2MTU6MzQ0ODM0OjY5NjlCRkJCIiwidmlzaXRvcl9pZCI6IjEyNzE4MDA0NzU5MzcyNTk0NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf656144c03cbd49fa1d5986f74dcd64d0d6da1ca99d0d7feab6c181938425f03
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/25264/files
twitter:imagehttps://avatars.githubusercontent.com/u/960340?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/960340?s=400&v=4
og:image:altRemoves a pathlib-specific implementation of realpath() that's mostly copied from ntpath and posixpath. https://bugs.python.org/issue43757
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/25264/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F25264%2Ffiles
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%2Ffiles
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/25264/files
Reloadhttps://github.com/python/cpython/pull/25264/files
Reloadhttps://github.com/python/cpython/pull/25264/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/25264/files
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/files
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
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
Conversation 35 https://github.com/python/cpython/pull/25264
Commits 23 https://github.com/python/cpython/pull/25264/commits
Checks 1 https://github.com/python/cpython/pull/25264/checks
Files changed https://github.com/python/cpython/pull/25264/files
Please reload this pagehttps://github.com/python/cpython/pull/25264/files
bpo-43757: make pathlib use os.path.realpath() to resolve all symlinks in a path https://github.com/python/cpython/pull/25264/files#top
Show all changes 23 commits https://github.com/python/cpython/pull/25264/files
164dbfd bpo-43757: make pathlib use os.path.realpath() to resolve all symlink… barneygale Apr 7, 2021 https://github.com/python/cpython/pull/25264/commits/164dbfd3f3a484eb32eabb60d893ae19714043ce
2894e0a Adjust `os.path.realpath` to match `pathlib.Path.resolve()` behaviour… barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/2894e0a21a84e00b2959ca42f0e109a61fdfad2d
495bd8b Call `os.stat()` to raise `OSError(errno.ELOOP, ...)`. barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/495bd8b483a91d6f2a0969de179b7d5ec6770ac3
492c66b Remove unused import barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/492c66ba004be9814e61fc3f180e5bb6d8f0f018
c8bac15 Stop ignoring ERROR_CANT_RESOLVE_FILENAME error in _getfinalpathname_… barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/c8bac15402acdc9fbd6034b37d11642c86840bdf
fe69688 Fix symlink detection and `posixpath` tests. barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/fe69688bceb22644195a69394306dc93ff39576a
4114be9 Raise RuntimeError in Path.resolve() if realpath() raises ERROR_CANT_… barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/4114be91f6f0c5db26749807d223bdbb7a40536b
2a594ce Remove unused import barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/2a594ced11da760695e9d8601d7f2023ef0789bd
fb36a40 Make documentation a little more general to accurately cover Windows. barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/fb36a40db972571cf37d42f392eb4df3ae328db8
0634486 First pass on fixing `ntpath` tests barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/0634486f61c022964a7a444f25eab00456041e2e
600fc9e Second pass on fixing `ntpath` tests barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/600fc9e7d1b2244ddd28b0e8fa159feab87a84e5
047471c Fix indentation barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/047471c1b445f68efb02fc58b15e42a31bf3ffbb
bf3a3f7 Copy description of 'strict' from pathlib. barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/bf3a3f793cea27fdd1b549b877286df5932c4527
f839db0 Add tests barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/f839db022be47b6d252ec4ba4cf83be53f1c3122
2d30bb7 Add NEWS barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/2d30bb783c1b8478f95f68ab568d14906f97c528
68c6533 Fix ntpath tests (pass 1) barneygale Apr 8, 2021 https://github.com/python/cpython/pull/25264/commits/68c6533511e564e5d7d633e854b3ca4ef5035541
9fa60eb Add some notes on OS differences barneygale Apr 10, 2021 https://github.com/python/cpython/pull/25264/commits/9fa60eb9ec059e164eda1e3010f87d39627a5eaa
f979947 Split NEWS barneygale Apr 10, 2021 https://github.com/python/cpython/pull/25264/commits/f979947a207015bdb87dfdc5f3f1fa316daca66b
a82bc18 Do not suppress initial ERROR_CANT_RESOLVE_FILENAME error in non-stri… barneygale Apr 10, 2021 https://github.com/python/cpython/pull/25264/commits/a82bc185699ea1550fd9588ab668ad7674a25544
86c318c realpath(): only raise OSError for symlink loops in strict mode barneygale Apr 13, 2021 https://github.com/python/cpython/pull/25264/commits/86c318c61c8b9eb29e6f609af46fe25dcfd3ea61
7362f7e Fix test_ntpath (pass 1) barneygale Apr 13, 2021 https://github.com/python/cpython/pull/25264/commits/7362f7e8fa68924321d76456ec4210083acab0a1
72147c5 Fix test_ntpath (pass 2) barneygale Apr 13, 2021 https://github.com/python/cpython/pull/25264/commits/72147c5d1955e21c8dba99c22ab8470b993917d7
df04357 Split up exception handling in resolve() for greater clarity. barneygale Apr 13, 2021 https://github.com/python/cpython/pull/25264/commits/df04357fafe104d9114a245c24dbea92b2b5e60b
Clear filters https://github.com/python/cpython/pull/25264/files
Please reload this pagehttps://github.com/python/cpython/pull/25264/files
Please reload this pagehttps://github.com/python/cpython/pull/25264/files
os.path.rst https://github.com/python/cpython/pull/25264/files#diff-22dc079c4b2ebb7590f7963d2a7ea70133920c3f465d35b421ec9451c563d783
ntpath.py https://github.com/python/cpython/pull/25264/files#diff-892add06b0598c5d7b07448e0ac87f5aa6b97fd0a79d77bcbc69092b70d1d065
pathlib.py https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
posixpath.py https://github.com/python/cpython/pull/25264/files#diff-d6136c5d9ee0e94f1493c883b3ff81b005862e11fe75aaab85b760f4309e8146
test_ntpath.py https://github.com/python/cpython/pull/25264/files#diff-f32eb738dcaaaaeb2ac5bcd885fd517e11c9efc35c44912bef0c725e20c1fbea
test_posixpath.py https://github.com/python/cpython/pull/25264/files#diff-2ba0be153d12a4810bc4d509c97d4c244a9f4fd754c1b47d8d7a991238467595
2021-04-08-22-11-27.bpo-25264.b33fa0.rst https://github.com/python/cpython/pull/25264/files#diff-6a37c0bfe090b4051fb76c6787bb48e48f9bf713f2b40d6a7227f7d102899663
Doc/library/os.path.rsthttps://github.com/python/cpython/pull/25264/files#diff-22dc079c4b2ebb7590f7963d2a7ea70133920c3f465d35b421ec9451c563d783
View file https://github.com/barneygale/cpython/blob/df04357fafe104d9114a245c24dbea92b2b5e60b/Doc/library/os.path.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25264/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25264/files#diff-22dc079c4b2ebb7590f7963d2a7ea70133920c3f465d35b421ec9451c563d783
https://github.com/python/cpython/pull/25264/files#diff-22dc079c4b2ebb7590f7963d2a7ea70133920c3f465d35b421ec9451c563d783
Lib/ntpath.pyhttps://github.com/python/cpython/pull/25264/files#diff-892add06b0598c5d7b07448e0ac87f5aa6b97fd0a79d77bcbc69092b70d1d065
View file https://github.com/barneygale/cpython/blob/df04357fafe104d9114a245c24dbea92b2b5e60b/Lib/ntpath.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25264/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25264/files#diff-892add06b0598c5d7b07448e0ac87f5aa6b97fd0a79d77bcbc69092b70d1d065
https://github.com/python/cpython/pull/25264/files#diff-892add06b0598c5d7b07448e0ac87f5aa6b97fd0a79d77bcbc69092b70d1d065
Please reload this pagehttps://github.com/python/cpython/pull/25264/files
https://github.com/python/cpython/pull/25264/files#diff-892add06b0598c5d7b07448e0ac87f5aa6b97fd0a79d77bcbc69092b70d1d065
Lib/pathlib.pyhttps://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
View file https://github.com/barneygale/cpython/blob/df04357fafe104d9114a245c24dbea92b2b5e60b/Lib/pathlib.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25264/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
Please reload this pagehttps://github.com/python/cpython/pull/25264/files
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
https://github.com/python/cpython/pull/25264/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
Lib/posixpath.pyhttps://github.com/python/cpython/pull/25264/files#diff-d6136c5d9ee0e94f1493c883b3ff81b005862e11fe75aaab85b760f4309e8146
View file https://github.com/barneygale/cpython/blob/df04357fafe104d9114a245c24dbea92b2b5e60b/Lib/posixpath.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25264/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25264/files#diff-d6136c5d9ee0e94f1493c883b3ff81b005862e11fe75aaab85b760f4309e8146
https://github.com/python/cpython/pull/25264/files#diff-d6136c5d9ee0e94f1493c883b3ff81b005862e11fe75aaab85b760f4309e8146
https://github.com/python/cpython/pull/25264/files#diff-d6136c5d9ee0e94f1493c883b3ff81b005862e11fe75aaab85b760f4309e8146
https://github.com/python/cpython/pull/25264/files#diff-d6136c5d9ee0e94f1493c883b3ff81b005862e11fe75aaab85b760f4309e8146
https://github.com/python/cpython/pull/25264/files#diff-d6136c5d9ee0e94f1493c883b3ff81b005862e11fe75aaab85b760f4309e8146
Lib/test/test_ntpath.pyhttps://github.com/python/cpython/pull/25264/files#diff-f32eb738dcaaaaeb2ac5bcd885fd517e11c9efc35c44912bef0c725e20c1fbea
View file https://github.com/barneygale/cpython/blob/df04357fafe104d9114a245c24dbea92b2b5e60b/Lib/test/test_ntpath.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25264/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25264/files#diff-f32eb738dcaaaaeb2ac5bcd885fd517e11c9efc35c44912bef0c725e20c1fbea
https://github.com/python/cpython/pull/25264/files#diff-f32eb738dcaaaaeb2ac5bcd885fd517e11c9efc35c44912bef0c725e20c1fbea
https://github.com/python/cpython/pull/25264/files#diff-f32eb738dcaaaaeb2ac5bcd885fd517e11c9efc35c44912bef0c725e20c1fbea
https://github.com/python/cpython/pull/25264/files#diff-f32eb738dcaaaaeb2ac5bcd885fd517e11c9efc35c44912bef0c725e20c1fbea
https://github.com/python/cpython/pull/25264/files#diff-f32eb738dcaaaaeb2ac5bcd885fd517e11c9efc35c44912bef0c725e20c1fbea
https://github.com/python/cpython/pull/25264/files#diff-f32eb738dcaaaaeb2ac5bcd885fd517e11c9efc35c44912bef0c725e20c1fbea
Please reload this pagehttps://github.com/python/cpython/pull/25264/files
Please reload this pagehttps://github.com/python/cpython/pull/25264/files
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.