| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:56d20cdc-46c7-8e7b-63ac-3cc5fd77b2c5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8398:6AD60:1473471:1CA484C:69691C98 |
| html-safe-nonce | 747df839a8397f0ff6afae76c4dce460f92b4c210cdd954869136f19d93a40e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mzk4OjZBRDYwOjE0NzM0NzE6MUNBNDg0Qzo2OTY5MUM5OCIsInZpc2l0b3JfaWQiOiIzNDE2NjMyOTA1MDQ5OTA2MzI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 08512727d7285eb36dd5bdeab572fccb40088b7b5057095135ea5021b4a971b0 |
| hovercard-subject-tag | pull_request:657130754 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/26438/files |
| twitter:image | https://avatars.githubusercontent.com/u/24860864?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/24860864?s=400&v=4 |
| og:image:alt | Updated based on feedback - currently marked as draft
I submit for your consideration what I believe is the first working version (with documentation) of an extensible, subclassable PurePath/Path t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e60568924309a021b51adabdce15c2a2f285b556f3130d1a2fa2a5bce11c55f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd206f7ed6207863172be4a783826e86bd2375c3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/26438/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F26438%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F26438%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 |
| Reload | https://github.com/python/cpython/pull/26438/files |
| Reload | https://github.com/python/cpython/pull/26438/files |
| Reload | https://github.com/python/cpython/pull/26438/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/26438/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
2k
| 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 page | https://github.com/python/cpython/pull/26438/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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| kfollstad | https://github.com/kfollstad |
| python:main | https://github.com/python/cpython/tree/main |
| kfollstad:PathlibSimplePath | https://github.com/kfollstad/cpython/tree/PathlibSimplePath |
|
Conversation
3
| https://github.com/python/cpython/pull/26438 |
|
Commits
11
| https://github.com/python/cpython/pull/26438/commits |
|
Checks
0
| https://github.com/python/cpython/pull/26438/checks |
|
Files changed
| https://github.com/python/cpython/pull/26438/files |
| Please reload this page | https://github.com/python/cpython/pull/26438/files |
|
bpo-24132: Direct sub-classing of pathlib.Path
| https://github.com/python/cpython/pull/26438/files#top |
|
Show all changes
11 commits
| https://github.com/python/cpython/pull/26438/files |
|
f011491
bpo-24132: Add stub SimplePath/FilePath classes to pathlib
kfollstad Apr 30, 2021
| https://github.com/python/cpython/pull/26438/commits/f011491b0ad98e157261f52d5173119763328770 |
|
ff1d455
bpo-24132: Replace hardcoded references where possible in pathlib
kfollstad Apr 30, 2021
| https://github.com/python/cpython/pull/26438/commits/ff1d4553c9d7613bcab4693ef3483b5ded18c17d |
|
488994f
bpo-24132: Refactor PurePath methods into base class in pathlib
kfollstad May 3, 2021
| https://github.com/python/cpython/pull/26438/commits/488994f89eac8e00f84a6a05340f160175d38182 |
|
6a69e0d
bpo-24132: Completed SimplePath in pathlib
kfollstad May 3, 2021
| https://github.com/python/cpython/pull/26438/commits/6a69e0dd813d9fccf913971e62919f049a1b6cf6 |
|
09317e2
bpo-24132: Partial implmentation of FilePath in pathlib
kfollstad May 3, 2021
| https://github.com/python/cpython/pull/26438/commits/09317e2e71e664938e5eef09cca08128bdab144c |
|
d966acf
bpo-24132: Fix inconsistent organization of is_mount in pathlib
kfollstad May 27, 2021
| https://github.com/python/cpython/pull/26438/commits/d966acfb99f93db5f060b38ae698ae39bde9e6be |
|
ed5f237
bpo-24132: Replace additional hardcoded references in pathlib
kfollstad May 3, 2021
| https://github.com/python/cpython/pull/26438/commits/ed5f237ca46d150cc2343e64814453be8f54267d |
|
ecc341b
bpo-24132: Completed FilePath in pathlib
kfollstad May 5, 2021
| https://github.com/python/cpython/pull/26438/commits/ecc341ba9261bd6ed1e3daf1eb05e7591f909d85 |
|
2700e46
bpo-24123: Add SimplePosixPath and SimpleWindowsPath to pathlib
kfollstad May 25, 2021
| https://github.com/python/cpython/pull/26438/commits/2700e46b2a07fd928cbbc6f126eb416cbc053cff |
|
d15d8da
bpo-24132: Fix validity of inter-path comparison in pathlib
kfollstad May 26, 2021
| https://github.com/python/cpython/pull/26438/commits/d15d8da8ebb3d23934f2ca476d063cee0480f863 |
|
6028b6d
bpo-24132: Document FilePath and SimplePath family in pathlib
kfollstad May 26, 2021
| https://github.com/python/cpython/pull/26438/commits/6028b6de32ec2466cb046623ae26ef7b999477e6 |
|
Clear filters
| https://github.com/python/cpython/pull/26438/files |
| Please reload this page | https://github.com/python/cpython/pull/26438/files |
| Please reload this page | https://github.com/python/cpython/pull/26438/files |
|
pathlib.rst
| https://github.com/python/cpython/pull/26438/files#diff-1134e36a94ecfde1df43bee5efd285de5d67426fbca086425201ecc753f9139c |
|
pathlib.py
| https://github.com/python/cpython/pull/26438/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c |
|
test_pathlib.py
| https://github.com/python/cpython/pull/26438/files#diff-3dd97d2dc8816848d0b0c442e8fdeec9650b3de77935289a93f37ac6396ee17f |
|
ACKS
| https://github.com/python/cpython/pull/26438/files#diff-d1243956feb505c5459fc05387e194609efb5c350cee202942be47ed30d7d7d0 |
|
2021-05-25-21-25-39.bpo-24132.37mJNj.rst
| https://github.com/python/cpython/pull/26438/files#diff-34a51d022f85e41c19ba2da49591faba94f5ca89bcf1b13bb4937540a734dfd8 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L525 |
| Doc/library/pathlib.rst | https://github.com/python/cpython/pull/26438/files#diff-1134e36a94ecfde1df43bee5efd285de5d67426fbca086425201ecc753f9139c |
|
View file
| https://github.com/kfollstad/cpython/blob/6028b6de32ec2466cb046623ae26ef7b999477e6/Doc/library/pathlib.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/26438/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/26438/files#diff-1134e36a94ecfde1df43bee5efd285de5d67426fbca086425201ecc753f9139c |
|
| https://github.com/python/cpython/pull/26438/files#diff-1134e36a94ecfde1df43bee5efd285de5d67426fbca086425201ecc753f9139c |
|
| https://github.com/python/cpython/pull/26438/files#diff-1134e36a94ecfde1df43bee5efd285de5d67426fbca086425201ecc753f9139c |
|
| https://github.com/python/cpython/pull/26438/files#diff-1134e36a94ecfde1df43bee5efd285de5d67426fbca086425201ecc753f9139c |
|
| https://github.com/python/cpython/pull/26438/files#diff-1134e36a94ecfde1df43bee5efd285de5d67426fbca086425201ecc753f9139c |
|
| https://github.com/python/cpython/pull/26438/files#diff-1134e36a94ecfde1df43bee5efd285de5d67426fbca086425201ecc753f9139c |
| Please reload this page | https://github.com/python/cpython/pull/26438/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |