gh-81790: support "UNC" device paths in `ntpath.splitdrive()` by barneygale · Pull Request #91882 · python/cpython · GitHub

github.com

Tin mới

barneygale:gh-81790-splitdrive-improvements

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

: support "UNC" device paths in ntpath.splitdrive()

bpo-37609 - Support "UNC" and "GLOBAL" junctions in ntpath.splitdrive(). #31702

Add docs, news, tests.

Add a couple of comments.

Improve variable names a little

View reviewed changes

Address review feedback

Add a few comments

View reviewed changes

Fix volume-by-guid path support

View reviewed changes

Update Lib/ntpath.py

Update Lib/ntpath.py

Update Lib/ntpath.py

gh-68320, gh-88302 - Allow for pathlib.Path subclassing #31691

gh-86943: implement pathlib.WindowsPath.is_mount() #31458

support "UNC" device paths in ntpath.splitdrive #81790

View reviewed changes

Learn more about hiding disruptive comments

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

Revise implementation to affect only paths beginning \\?\UNC\.

Undo formatting change.

Re-introduce comment with some interesting findings on extended paths.

View reviewed changes

Fix handling of \\?\UNC (no trailing slash)

View reviewed changes

Remove extending paths findings comment.

View reviewed changes

Remove unnecessary tests

Revert 30935 defer bpo45162 to 312 (

emscripten-core/emscripten#17269