Title: [3.11] gh-91317: Document that Path does not collapse initial `//` (GH-32193) by miss-islington · Pull Request #93702 · python/cpython · GitHub
Open Graph Title: [3.11] gh-91317: Document that Path does not collapse initial `//` (GH-32193) by miss-islington · Pull Request #93702 · python/cpython
X Title: [3.11] gh-91317: Document that Path does not collapse initial `//` (GH-32193) by miss-islington · Pull Request #93702 · 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. (cherry picked from commit 78f1a43) Co-authored-by: Oleg Iarygin oleg@arhadthedev.net 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/93702
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:86497a59-ff15-f58c-992d-798e5af7cd12 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A326:2BFBB8:93F61B:CC436D:696A8470 |
| html-safe-nonce | 4d6d8f7248fcf9e554ed3d4f8074d6bc6bcb9d9331cd16b4c8ed7f752c4799ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzI2OjJCRkJCODo5M0Y2MUI6Q0M0MzZEOjY5NkE4NDcwIiwidmlzaXRvcl9pZCI6IjQzNzM2MzExNTI4MDMxODU3NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c4278e5ca0e473b872f0b25749737f6451107b13de721ef3124c028817811ce9 |
| hovercard-subject-tag | pull_request:964607366 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/93702/files |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?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 | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width