| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6423f8e3-c61d-7daf-b077-8fe7d700db0a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C1B0:1F9980:B2667:F4A84:696962BB |
| html-safe-nonce | a63deb855dcb14e3d88ededbbb09feb933aa6d2433fc2e9ea32a31d579630f38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUIwOjFGOTk4MDpCMjY2NzpGNEE4NDo2OTY5NjJCQiIsInZpc2l0b3JfaWQiOiI1NDExOTAyODA0NzA1NTAxODgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5526949b0d092f83675cc9352571c60a407401ba8135cb85b0121f10e58f16d8 |
| hovercard-subject-tag | pull_request:838567192 |
| 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/31085/files |
| twitter:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| og:image:alt | After a couple of years of mostly deleting things in pathlib, I'm glad to finally offer an addition!
This PR adds a new _AbstractPath class that sits between PurePath and Path in the class hier... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1 |
| 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 | 669463fcc54773a88c1f5a44eef6b99a5504b9c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/31085/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31085%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%2F31085%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/31085/files |
| Reload | https://github.com/python/cpython/pull/31085/files |
| Reload | https://github.com/python/cpython/pull/31085/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/31085/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 page | https://github.com/python/cpython/pull/31085/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 |
| barneygale | https://github.com/barneygale |
| python:main | https://github.com/python/cpython/tree/main |
| barneygale:bpo-24132-add-pathlib-abstractpath | https://github.com/barneygale/cpython/tree/bpo-24132-add-pathlib-abstractpath |
|
Conversation
30
| https://github.com/python/cpython/pull/31085 |
|
Commits
10
| https://github.com/python/cpython/pull/31085/commits |
|
Checks
0
| https://github.com/python/cpython/pull/31085/checks |
|
Files changed
| https://github.com/python/cpython/pull/31085/files |
| Please reload this page | https://github.com/python/cpython/pull/31085/files |
|
bpo-24132: Add pathlib._AbstractPath
| https://github.com/python/cpython/pull/31085/files#top |
|
Show all changes
10 commits
| https://github.com/python/cpython/pull/31085/files |
|
66f8eb1
Move `Path._make_child_relpath()` to `PurePath`
barneygale Feb 2, 2022
| https://github.com/python/cpython/pull/31085/commits/66f8eb1fdf4783e3e4dc581f78dffc8fa3a9be59 |
|
27d8f7f
Add `_AbstractPath` class
barneygale Feb 2, 2022
| https://github.com/python/cpython/pull/31085/commits/27d8f7f05346bc3fda7ede09cbabe7545f6a157b |
|
47191ed
Optimize `Path` methods that may raise `NotImplementedError`
barneygale Feb 2, 2022
| https://github.com/python/cpython/pull/31085/commits/47191edbfd5bd4c9822615f5c66012bdb21b8000 |
|
bbd7fd1
Add NEWS entry
barneygale Feb 2, 2022
| https://github.com/python/cpython/pull/31085/commits/bbd7fd1cbbbcd64219f6b27620cafab7534edeab |
|
67e5e95
Subclass `abc.ABC` and decorate core methods with `@abc.abstractmethod`.
barneygale Feb 11, 2022
| https://github.com/python/cpython/pull/31085/commits/67e5e9582ab81c8a044b903e37646d500931a9ed |
|
ef8d13e
Remove quasi-abstract methods from AbstractPath
barneygale Feb 14, 2022
| https://github.com/python/cpython/pull/31085/commits/ef8d13e15502b8f096bc6878ad93501e0c8940c8 |
|
21e0ece
Merge branch 'main' into bpo-24132-add-pathlib-abstractpath
barneygale Feb 14, 2022
| https://github.com/python/cpython/pull/31085/commits/21e0ece6810520a0b8e7ebaa9b10707455c23bbf |
|
18a2c38
Improve _scandir() comment.
barneygale Feb 14, 2022
| https://github.com/python/cpython/pull/31085/commits/18a2c3896c4b88b4e518ec48c503df2d7e055a17 |
|
3312870
Remove speculation/promises from `_AbstractPath` docstring.
barneygale Feb 21, 2022
| https://github.com/python/cpython/pull/31085/commits/3312870453b38de035924ff5c1bc60b4a4770ef3 |
|
bcefeed
Merge branch 'main' into bpo-24132-add-pathlib-abstractpath
barneygale Jun 12, 2022
| https://github.com/python/cpython/pull/31085/commits/bcefeed519d96bf317a5829eb497a0a03357196f |
|
Clear filters
| https://github.com/python/cpython/pull/31085/files |
| Please reload this page | https://github.com/python/cpython/pull/31085/files |
| Please reload this page | https://github.com/python/cpython/pull/31085/files |
|
pathlib.py
| https://github.com/python/cpython/pull/31085/files#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c |
|
2022-02-02-18-59-09.bpo-24132.mddFFe.rst
| https://github.com/python/cpython/pull/31085/files#diff-f4ae5a40fc3a3bf9276c59e05e686f0f14f22c6da0c663863d64199e82d26d57 |
| Please reload this page | https://github.com/python/cpython/pull/31085/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 |