bpo-24132: Add direct subclassing of PurePath/Path in pathlib by kfollstad · Pull Request #26906 · python/cpython · GitHub

github.com

Tin mới

kfollstad:PathlibFinalMasquerade

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

That code can be found here.

I submit for your consideration a new working version (with documentation) of an extensible, subclassable PurePath/Path to close bpo-24132, a 6-year-old bug. I had previously submitted a PR which added classes to pathlib

bpo-24132: Add tests for class properties in pathlib's PurePath/Path

bpo-24132: Add test for direct subclassing of PurePath/Path in pathlib

bpo-24132: Fix inconsistent organization of is_mount in pathlib

bpo-24132: Replace additional hardcoded references in pathlib

bpo-24132: Replace factory functionality with masquerade in pathlib

bpo-24132: Add tests for comparing subclasses of PurePath in pathlib

bpo-24132: Document direct subclassing of PurePath/Path in pathlib

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

bpo-24132: Direct sub-classing of pathlib.Path #26438

github-actions Bot commented Jul 27, 2021
github-actions Bot commented Jul 27, 2021

github-actions Bot commented Jul 27, 2021

This PR is stale because it has been open for 30 days with no activity.

Direct sub-classing of pathlib.Path #68320