gh-68320, gh-88302 - Allow for `pathlib.Path` subclassing by barneygale · Pull Request #31691 · python/cpython · GitHub

github.com

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

python/cpython:main

barneygale:bpo-44136-remove-pathlib-flavour-2

7371220 bpo-24132, bpo-44136 - Fix `pathlib.Path` subclassing. barneygale Mar 5, 2022

8431d12 Add tests barneygale Mar 5, 2022

bf2ad3a Add tests for PurePath subclasses barneygale Mar 5, 2022

4036e2e Update Misc/NEWS.d/next/Library/2022-03-05-02-14-09.bpo-24132.W6iORO.rst barneygale Mar 5, 2022

0d08533 Rename `PurePath._pathmod` to `PurePath._flavour` to reduce the diff. barneygale Mar 5, 2022

0ad8022 Merge branch 'bpo-44136-remove-pathlib-flavour-2' of github.com:barne… barneygale Mar 5, 2022

28992fc Undo an unnecessary change to `Path.__new__()` barneygale Mar 25, 2022

dbec230 Remove `_casefold()` and `_casefold_parts()` methods. barneygale Mar 25, 2022

d814ee4 Merge branch 'main' into bpo-44136-remove-pathlib-flavour-2 barneygale Apr 29, 2022

63f1d68 Further simplify overall diff by inlining code from `compile_pattern()` barneygale Apr 29, 2022

8dddfdf Apply suggestions from code review barneygale Apr 29, 2022

b4da721 Address a couple bits of review feedback barneygale Apr 29, 2022

7a166fd Fix tests barneygale Apr 29, 2022

1f4dff1 Fix docstring formatting. barneygale Apr 29, 2022

51893c1 Remove FIXME comments barneygale Apr 30, 2022

48b49b6 Merge branch 'main' into bpo-44136-remove-pathlib-flavour-2 barneygale Apr 30, 2022

3624c97 Update Lib/pathlib.py barneygale May 3, 2022

ab54c14 Remove vestigal 'casefold' names. barneygale May 31, 2022

2627417 Merge branch 'main' into bpo-44136-remove-pathlib-flavour-2 barneygale Jun 10, 2022

bc7aded Restore comment on POSIX paths beginning `//` and tweak implementation. barneygale Jun 10, 2022

4d6e4f3 Inline `_join_parsed_parts()` and `_make_child()` in `joinpath()`. barneygale Jun 12, 2022

70ca838 Update Lib/pathlib.py barneygale Jun 13, 2022

a2cc74f Remove unused import barneygale Jun 16, 2022

0e2478b Make NEWS entry more precise. barneygale Jun 17, 2022

0d0cf60 Apply suggestions from code review barneygale Jul 29, 2022

f3048d3 Clarify `_pparts` and `_ncparts` naming. barneygale Jul 29, 2022

8a213ae Tidy up usage of `normcase()` barneygale Jul 30, 2022

402dafe Tweak `is_absolute()` to use `os.path.isabs()` wherever possible. barneygale Jul 30, 2022

5cc3ab2 Stop using `self._flavour` in `as_uri()`. barneygale Jul 30, 2022