Title: gh-91317: Document that Path does not collapse initial `//` by arhadthedev · Pull Request #32193 · python/cpython · GitHub
Open Graph Title: gh-91317: Document that Path does not collapse initial `//` by arhadthedev · Pull Request #32193 · python/cpython
X Title: gh-91317: Document that Path does not collapse initial `//` by arhadthedev · Pull Request #32193 · python/cpython
Description: Documentation for pathlib says: Spurious slashes and single dots are collapsed, but double dots ('..') are not, since this would change the meaning of a path in the face of symbolic links: However, it omits that initial double slashes also aren't collapsed. Later, in documentation of PurePath.drive, PurePath.root, and PurePath.name it mentions UNC but: this abbreviation says nothing to a person who is unaware about existence of UNC (Wikipedia doesn't help either by giving a disambiguation page) it shows up only if a person needs to use a specific property or decides to fully learn what the module provides. For context, see the BPO entry. https://bugs.python.org/issue47161 Automerge-Triggered-By: GH:brettcannon
Open Graph Description: Documentation for pathlib says: Spurious slashes and single dots are collapsed, but double dots ('..') are not, since this would change the meaning of a path in the face of symbolic links:...
X Description: Documentation for pathlib says: Spurious slashes and single dots are collapsed, but double dots ('..') are not, since this would change the meaning of a path in the face of symboli...
Opengraph URL: https://github.com/python/cpython/pull/32193
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:1c95bc77-8f4f-353a-1045-ba36fa02bcee |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A5C6:B07CA:A530BF:E8B3F1:696A1C33 |
| html-safe-nonce | f3ddb9305093c3c07d7284aab2886de42416f1a4120a357c898fdd126ffd7a26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUM2OkIwN0NBOkE1MzBCRjpFOEIzRjE6Njk2QTFDMzMiLCJ2aXNpdG9yX2lkIjoiNDIxMjQ5MDk2Nzc2OTAyOTY4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b0949356ab0958707ee083b3168c03c6d2287c5c9456a3c063e2406c511ac8fc |
| hovercard-subject-tag | pull_request:894547718 |
| 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/32193/checks |
| twitter:image | https://avatars.githubusercontent.com/u/4881073?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4881073?s=400&v=4 |
| og:image:alt | Documentation for pathlib says: Spurious slashes and single dots are collapsed, but double dots ('..') are not, since this would change the meaning of a path in the face of symbolic links:... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 34a52bd10bd674f68e5c1b6b74413b79bf2ca20c551055ace3f7cdd112803923 |
| 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 | e8bd37502700f365b18a4d39acf7cb7947e11b1a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width