Title: gh-81790: support "UNC" device paths in `ntpath.splitdrive()` by barneygale · Pull Request #91882 · python/cpython · GitHub
Open Graph Title: gh-81790: support "UNC" device paths in `ntpath.splitdrive()` by barneygale · Pull Request #91882 · python/cpython
X Title: gh-81790: support "UNC" device paths in `ntpath.splitdrive()` by barneygale · Pull Request #91882 · python/cpython
Description: Adds support in ntpath.splitdrive() for DOS device paths with UNC links (beginning \\?\UNC\). Previous patches for this bug substantially rewrote splitdrive() to improve how other oddities are handled (e.g. double slashes). This patch is more conservative: existing behaviour is maintained except when the prefixes are present. This brings splitdrive() in line with pathlib behaviour, and consequently allows us to factor out a duplicate implementation in pathlib. Fixes #81790 and #85871
Open Graph Description: Adds support in ntpath.splitdrive() for DOS device paths with UNC links (beginning \\?\UNC\). Previous patches for this bug substantially rewrote splitdrive() to improve how other oddities are hand...
X Description: Adds support in ntpath.splitdrive() for DOS device paths with UNC links (beginning \\?\UNC\). Previous patches for this bug substantially rewrote splitdrive() to improve how other oddities are hand...
Opengraph URL: https://github.com/python/cpython/pull/91882
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:0a073c4e-be79-ca5e-2c48-feacb343ead8 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E59C:861EA:CC9CF4:1137783:69699A0C |
| html-safe-nonce | e7d2c6144b2d18c3627b019e9e4cfdac600b9010f55c9464d4fe1cd6322007e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTlDOjg2MUVBOkNDOUNGNDoxMTM3NzgzOjY5Njk5QTBDIiwidmlzaXRvcl9pZCI6IjQwNjMxNzUzMDAxNDcxNTc1MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f3f85f4a77119cff6e9c6942f878add3f84a657a474dd35917d2748255330660 |
| hovercard-subject-tag | pull_request:917473354 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/91882/checks |
| 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 | Adds support in ntpath.splitdrive() for DOS device paths with UNC links (beginning \\?\UNC\). Previous patches for this bug substantially rewrote splitdrive() to improve how other oddities are hand... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width