Title: pathlib.PureWindowsPath.is_absolute() can return False for UNC paths · Issue #105476 · python/cpython · GitHub
Open Graph Title: pathlib.PureWindowsPath.is_absolute() can return False for UNC paths · Issue #105476 · python/cpython
X Title: pathlib.PureWindowsPath.is_absolute() can return False for UNC paths · Issue #105476 · python/cpython
Description: cpython/Lib/pathlib.py Line 692 in 264a011 return bool(self.drive and self.root) Per @eryksun: Note that this check is wrong for incomplete UNC paths such as "//", "//spam", "//?/UNC/", and "//?/UNC/spam". Such paths lack a root and don'...
Open Graph Description: cpython/Lib/pathlib.py Line 692 in 264a011 return bool(self.drive and self.root) Per @eryksun: Note that this check is wrong for incomplete UNC paths such as "//", "//spam", "//?/UNC/", and "//?/UN...
X Description: cpython/Lib/pathlib.py Line 692 in 264a011 return bool(self.drive and self.root) Per @eryksun: Note that this check is wrong for incomplete UNC paths such as "//", "//spam", &qu...
Opengraph URL: https://github.com/python/cpython/issues/105476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pathlib.PureWindowsPath.is_absolute() can return False for UNC paths","articleBody":"https://github.com/python/cpython/blob/264a0110ffa4e08b0c7b1023e67a6bd7cb9617c6/Lib/pathlib.py#L692\r\n\r\n[Per](https://github.com/python/cpython/pull/104999#pullrequestreview-1468672383) @eryksun:\r\n\r\n> Note that this check is wrong for incomplete UNC paths such as \"//\", \"//spam\", \"//?/UNC/\", and \"//?/UNC/spam\". Such paths lack a root and don't even have an implicit root. However, they're still absolute because they don't depend on the current working directory. I don't know how or whether you want to handle this edge case.\r\n> \r\n> `ntpath.isabs()` gets this case right, but it's still wrong for rooted paths such as \"/spam\".","author":{"url":"https://github.com/barneygale","@type":"Person","name":"barneygale"},"datePublished":"2023-06-07T22:25:58Z","url":"https://github.com/python/cpython/issues/105476"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:12ba6922-e2c7-24a2-2dd1-94e1d9b81e81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E026:3CBB3E:32A867B:40A6279:6B021B42 |
| html-safe-nonce | c9df78106814750f87c859ddfdc114243c0a0cd6f2cb17764f692e61cddb10f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDI2OjNDQkIzRTozMkE4NjdCOjQwQTYyNzk6NkIwMjFCNDIiLCJ2aXNpdG9yX2lkIjoiNTA4ODE0OTU4MDM1MDEzNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c7c18fbc36e7c7be876f7f43d6eeb898a92ebeb8e5e5121a7a070256557413e5 |
| hovercard-subject-tag | issue:1746770738 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/105476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f076fba15e3af865a552bba438dd0b64b18a6454e88f7d19c29a4d1f42e7e2ef/python/cpython/issues/105476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f076fba15e3af865a552bba438dd0b64b18a6454e88f7d19c29a4d1f42e7e2ef/python/cpython/issues/105476 |
| og:image:alt | cpython/Lib/pathlib.py Line 692 in 264a011 return bool(self.drive and self.root) Per @eryksun: Note that this check is wrong for incomplete UNC paths such as "//", "//spam", "//?/UNC/", and "//?/UN... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | barneygale |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width