René's URL Explorer Experiment


Title: [WIP] GH-65238: Preserve trailing slash in pathlib by barneygale · Pull Request #112363 · python/cpython · GitHub

Open Graph Title: [WIP] GH-65238: Preserve trailing slash in pathlib by barneygale · Pull Request #112363 · python/cpython

X Title: [WIP] GH-65238: Preserve trailing slash in pathlib by barneygale · Pull Request #112363 · python/cpython

Description: Fix the last known case where pathlib can mangle the meaning of a path. This brings pathlib in line with IEEE Std 1003.1-2017, where trailing slashes are meaningful to path resolution and should no...

Open Graph Description: Fix the last known case where pathlib can mangle the meaning of a path. This brings pathlib in line with IEEE Std 1003.1-2017, where trailing slashes are meaningful to path resolution and should no...

X Description: Fix the last known case where pathlib can mangle the meaning of a path. This brings pathlib in line with IEEE Std 1003.1-2017, where trailing slashes are meaningful to path resolution and should no...

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

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:6135561b-5190-6139-e0ae-6b87542f44cd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDF6A:2786B7:EE1C63:1457C3B:6969F127
html-safe-noncedfc8c0968d45bc0df4357fd63be5e30fb3954677a5d30492d4f785348e0656a3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjZBOjI3ODZCNzpFRTFDNjM6MTQ1N0MzQjo2OTY5RjEyNyIsInZpc2l0b3JfaWQiOiIyOTkzOTk1NTIwNDI2NjAxMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac517908e29075026284f4fffba1657ac8dc4f6c5c2da3bd7c04f4f90aba8ef2ea
hovercard-subject-tagpull_request:1615514710
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/112363/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cf0c20dbe2955175ee1855efa4220919e412e86ff22688734f1432aabd1a3f94/python/cpython/pull/112363
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf0c20dbe2955175ee1855efa4220919e412e86ff22688734f1432aabd1a3f94/python/cpython/pull/112363
og:image:altFix the last known case where pathlib can mangle the meaning of a path. This brings pathlib in line with IEEE Std 1003.1-2017, where trailing slashes are meaningful to path resolution and should no...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
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
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/112363#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F112363
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%2F112363
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/112363
Reloadhttps://github.com/python/cpython/pull/112363
Reloadhttps://github.com/python/cpython/pull/112363
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/112363
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/112363
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/112363#issue-comment-box
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:keep-trailing-slash-wip3https://github.com/barneygale/cpython/tree/keep-trailing-slash-wip3
[WIP] GH-65238: Preserve trailing slash in pathlib https://github.com/python/cpython/pull/112363#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:keep-trailing-slash-wip3https://github.com/barneygale/cpython/tree/keep-trailing-slash-wip3
Conversation 0 https://github.com/python/cpython/pull/112363
Commits 31 https://github.com/python/cpython/pull/112363/commits
Checks 0 https://github.com/python/cpython/pull/112363/checks
Files changed https://github.com/python/cpython/pull/112363/files
Please reload this pagehttps://github.com/python/cpython/pull/112363
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Nov 24, 2023https://github.com/python/cpython/pull/112363#issue-2009416998
Please reload this pagehttps://github.com/python/cpython/pull/112363
IEEE Std 1003.1-2017https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13
GH-112361: Speed up pathlib by removing some temporary objects. #112362https://github.com/python/cpython/pull/112362
GH-106747: Improve Path.glob() expectations in pathlib tests #112365https://github.com/python/cpython/pull/112365
GH-112675: Move path joining tests into test_posixpath and test_ntpath #112676https://github.com/python/cpython/pull/112676
GH-65238: Add test cases for trailing slash handling in pathlib #113248https://github.com/python/cpython/pull/113248
Optimize pathlib.PurePath.__fspath__() #102783https://github.com/python/cpython/issues/102783
Add pathlib.chown method #64978https://github.com/python/cpython/issues/64978
Support moving across filesystems in pathlib.Path, as shutil.move() does #73991https://github.com/python/cpython/issues/73991
pathlib strips trailing slash #65238https://github.com/python/cpython/issues/65238
Please reload this pagehttps://github.com/python/cpython/pull/112363
https://github.com/barneygale
pythonGH-65238https://github.com/python/cpython/issues/65238
: Preserve trailing slash in pathlibhttps://github.com/python/cpython/pull/112363/commits/a1326c8c5f6dfb2d402f9346583accfa12552989
a1326c8https://github.com/python/cpython/pull/112363/commits/a1326c8c5f6dfb2d402f9346583accfa12552989
https://github.com/barneygale
barneygalehttps://github.com/barneygale
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
Nov 24, 2023https://github.com/python/cpython/pull/112363#event-11054682889
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 24, 2023 https://github.com/python/cpython/pull/112363#ref-issue-1198918177
pathlib strips trailing slash #65238 https://github.com/python/cpython/issues/65238
barneygalehttps://github.com/barneygale
November 24, 2023 10:02https://github.com/python/cpython/pull/112363#commits-pushed-df1e115
https://github.com/barneygale
Fix absolute() on bare DOS drivehttps://github.com/python/cpython/pull/112363/commits/df1e1158392edf56b35a40c77c0819042be772b7
df1e115https://github.com/python/cpython/pull/112363/commits/df1e1158392edf56b35a40c77c0819042be772b7
https://github.com/barneygale
Simplify diffhttps://github.com/python/cpython/pull/112363/commits/61be2e385694fece50ccb723c1ecf0fbc613d60a
61be2e3https://github.com/python/cpython/pull/112363/commits/61be2e385694fece50ccb723c1ecf0fbc613d60a
https://github.com/barneygale
Reduce diffhttps://github.com/python/cpython/pull/112363/commits/445364a1262da2995803d3c58ad4677f80048ed6
445364ahttps://github.com/python/cpython/pull/112363/commits/445364a1262da2995803d3c58ad4677f80048ed6
https://github.com/barneygale
Speed up _make_child_relpath()https://github.com/python/cpython/pull/112363/commits/63958156efd4c27b13086470d65d016ea431d3f2
6395815https://github.com/python/cpython/pull/112363/commits/63958156efd4c27b13086470d65d016ea431d3f2
https://github.com/barneygale
Ignore empty initialiser arguments for backwards compathttps://github.com/python/cpython/pull/112363/commits/435be1b5823a50b3c1627e7238cb92164cbddd99
435be1bhttps://github.com/python/cpython/pull/112363/commits/435be1b5823a50b3c1627e7238cb92164cbddd99
https://github.com/barneygale
Merge branch 'main' into keep-trailing-slash-wip3https://github.com/python/cpython/pull/112363/commits/e577a67177bc8cc063876f381597be8820427af0
e577a67https://github.com/python/cpython/pull/112363/commits/e577a67177bc8cc063876f381597be8820427af0
https://github.com/barneygale
Simplify implementationhttps://github.com/python/cpython/pull/112363/commits/d766d068d67171522d933343993a1307f25d4c97
d766d06https://github.com/python/cpython/pull/112363/commits/d766d068d67171522d933343993a1307f25d4c97
https://github.com/barneygale
Merge branch 'main' into keep-trailing-slash-wip3https://github.com/python/cpython/pull/112363/commits/12cfb1a4aedd0dd0c5420d87f275990181932e4c
12cfb1ahttps://github.com/python/cpython/pull/112363/commits/12cfb1a4aedd0dd0c5420d87f275990181932e4c
https://github.com/barneygale
Merge branch 'main' into keep-trailing-slash-wip3https://github.com/python/cpython/pull/112363/commits/2593ddbd385f29ff8d502394adc7632020443fe2
2593ddbhttps://github.com/python/cpython/pull/112363/commits/2593ddbd385f29ff8d502394adc7632020443fe2
https://github.com/barneygale
Add testshttps://github.com/python/cpython/pull/112363/commits/b27507899b622e6884f5b1d6abef7b3c83fa8e2a
b275078https://github.com/python/cpython/pull/112363/commits/b27507899b622e6884f5b1d6abef7b3c83fa8e2a
https://github.com/barneygale
Docstringshttps://github.com/python/cpython/pull/112363/commits/5d87cf400d0aa49344cef8aacc0f7f89423eeee1
5d87cf4https://github.com/python/cpython/pull/112363/commits/5d87cf400d0aa49344cef8aacc0f7f89423eeee1
https://github.com/barneygale
Docshttps://github.com/python/cpython/pull/112363/commits/af12c24bb4f2e27c1a834cc84b3f6f64f399cf37
af12c24https://github.com/python/cpython/pull/112363/commits/af12c24bb4f2e27c1a834cc84b3f6f64f399cf37
https://github.com/barneygale
Ensure has_trailing_sep is booleanhttps://github.com/python/cpython/pull/112363/commits/cae377495adfc2937d88e611cab85500844b4596
cae3774https://github.com/python/cpython/pull/112363/commits/cae377495adfc2937d88e611cab85500844b4596
https://github.com/barneygale
Add tests for new methods/propertieshttps://github.com/python/cpython/pull/112363/commits/d4c87c6462d7975d00374ce5995ba00a8c67fcb1
d4c87c6https://github.com/python/cpython/pull/112363/commits/d4c87c6462d7975d00374ce5995ba00a8c67fcb1
https://github.com/barneygale
Fix WindowsPath('C:').absolute()https://github.com/python/cpython/pull/112363/commits/1a77c8a745c4121d926d428b4cdba03b1ef122aa
1a77c8ahttps://github.com/python/cpython/pull/112363/commits/1a77c8a745c4121d926d428b4cdba03b1ef122aa
https://github.com/barneygale
Merge branch 'main' into keep-trailing-slash-wip3https://github.com/python/cpython/pull/112363/commits/120beed845a745b9e74ac3599353793d5f90eae5
120beedhttps://github.com/python/cpython/pull/112363/commits/120beed845a745b9e74ac3599353793d5f90eae5
https://github.com/barneygale
Don't access .parts from ._glob()https://github.com/python/cpython/pull/112363/commits/df79c49ad49c8110823ec6a311265d4508cf7f24
df79c49https://github.com/python/cpython/pull/112363/commits/df79c49ad49c8110823ec6a311265d4508cf7f24
https://github.com/barneygale
Fix pickle roundtrippinghttps://github.com/python/cpython/pull/112363/commits/0f75804f52d2754c652e3faa4b7711cef374ab48
0f75804https://github.com/python/cpython/pull/112363/commits/0f75804f52d2754c652e3faa4b7711cef374ab48
https://github.com/barneygale
Undo changes to partshttps://github.com/python/cpython/pull/112363/commits/eeb35ffa0472ca09364141064656eb1f786ccc7c
eeb35ffhttps://github.com/python/cpython/pull/112363/commits/eeb35ffa0472ca09364141064656eb1f786ccc7c
https://github.com/barneygale
Merge branch 'main' into keep-trailing-slash-wip3https://github.com/python/cpython/pull/112363/commits/153c4afe81e6c21ac1288629a2f9ebcb861256dc
153c4afhttps://github.com/python/cpython/pull/112363/commits/153c4afe81e6c21ac1288629a2f9ebcb861256dc
https://github.com/barneygale
Simplify _glob() slightlyhttps://github.com/python/cpython/pull/112363/commits/b852339e2f1ed74b5a03ce454cee5b13efed508d
b852339https://github.com/python/cpython/pull/112363/commits/b852339e2f1ed74b5a03ce454cee5b13efed508d
https://github.com/barneygale
Fix possible scoping issue in _glob()https://github.com/python/cpython/pull/112363/commits/2b77a61faf44ccce7fbc92279fcf3a3d0ba034f5
2b77a61https://github.com/python/cpython/pull/112363/commits/2b77a61faf44ccce7fbc92279fcf3a3d0ba034f5
https://github.com/barneygale
Formattinghttps://github.com/python/cpython/pull/112363/commits/7b6766f59c0f7efa3ab7bde42f1c6649ec25f960
7b6766fhttps://github.com/python/cpython/pull/112363/commits/7b6766f59c0f7efa3ab7bde42f1c6649ec25f960
https://github.com/barneygale
Add test cases for preserving slash in absolute() and expanduser()https://github.com/python/cpython/pull/112363/commits/f5c226577f66c24349d9127c1fb5dbb85bfde0a4
f5c2265https://github.com/python/cpython/pull/112363/commits/f5c226577f66c24349d9127c1fb5dbb85bfde0a4
https://github.com/barneygale
Add notes to match() and glob() docshttps://github.com/python/cpython/pull/112363/commits/11261172eb026205fd36c12415d6e90a90df8b57
1126117https://github.com/python/cpython/pull/112363/commits/11261172eb026205fd36c12415d6e90a90df8b57
https://github.com/barneygale
Merge branch 'main' into keep-trailing-slash-wip3https://github.com/python/cpython/pull/112363/commits/9c9b5eaa621b897b2099eca9c54a3fce74892b86
9c9b5eahttps://github.com/python/cpython/pull/112363/commits/9c9b5eaa621b897b2099eca9c54a3fce74892b86
https://github.com/barneygale
Merge branch 'main' into keep-trailing-slash-wip3https://github.com/python/cpython/pull/112363/commits/9539c603f6d5656ea2d43fb801546658cab427e7
9539c60https://github.com/python/cpython/pull/112363/commits/9539c603f6d5656ea2d43fb801546658cab427e7
barneygalehttps://github.com/barneygale
December 17, 2023 02:01https://github.com/python/cpython/pull/112363#commits-pushed-14a9635
https://github.com/barneygale
Merge branch 'main' into keep-trailing-slash-wip3https://github.com/python/cpython/pull/112363/commits/14a9635b4f6091e0ebe36535efedb47d03b8428a
14a9635https://github.com/python/cpython/pull/112363/commits/14a9635b4f6091e0ebe36535efedb47d03b8428a
https://github.com/barneygale
Undo pickling changehttps://github.com/python/cpython/pull/112363/commits/305381b32521ae1e5e0702f8b89f3cf12ecdbb3e
305381bhttps://github.com/python/cpython/pull/112363/commits/305381b32521ae1e5e0702f8b89f3cf12ecdbb3e
https://github.com/barneygale
Undo pickling changes.https://github.com/python/cpython/pull/112363/commits/dfe7aae5884258b3f85d675a3b83cd1b44133bda
dfe7aaehttps://github.com/python/cpython/pull/112363/commits/dfe7aae5884258b3f85d675a3b83cd1b44133bda
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Dec 19, 2023https://github.com/python/cpython/pull/112363#event-11294936008
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%2F112363
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
Please reload this pagehttps://github.com/python/cpython/pull/112363
https://github.com/barneygale
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.