Title: GH-65238: Fix stripping of trailing slash in pathlib by barneygale · Pull Request #103595 · python/cpython · GitHub
Open Graph Title: GH-65238: Fix stripping of trailing slash in pathlib by barneygale · Pull Request #103595 · python/cpython
X Title: GH-65238: Fix stripping of trailing slash in pathlib by barneygale · Pull Request #103595 · python/cpython
Description: This brings pathlib in line with IEEE Std 1003.1-2017, where trailing slashes are meaningful to path resolution and should not be discarded. This is the last known bug in pathlib's path normalization. Fixing such bugs is necessary if we're to return an unnormalized path from Path.__fspath__() as an optimization - see #102783. It is also helpful for solving #79634 and #102613. Although most bugfixes involve changing behaviour, in this case the change is reasonably significant. As such I'd like this to land early in the 3.13 alpha cycle and to skip backporting. Issue: gh-65238
Open Graph Description: This brings pathlib in line with IEEE Std 1003.1-2017, where trailing slashes are meaningful to path resolution and should not be discarded. This is the last known bug in pathlib's path normali...
X Description: This brings pathlib in line with IEEE Std 1003.1-2017, where trailing slashes are meaningful to path resolution and should not be discarded. This is the last known bug in pathlib's path nor...
Opengraph URL: https://github.com/python/cpython/pull/103595
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:56b1c7ac-c0af-fa3e-39a3-1ec326a5d2af |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C6E4:8B397:1781D1:201845:696A9BF7 |
| html-safe-nonce | 100f66ca225791607c88ac698c1c59b8bda55ec693e85a7f581cf565cf14eef5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkU0OjhCMzk3OjE3ODFEMToyMDE4NDU6Njk2QTlCRjciLCJ2aXNpdG9yX2lkIjoiMzQ5NjQ4MjA4NTE1ODk1MTkyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 035a1f1950f72a525e1b6774fa927e14cf0d39ff279797beb6a47c09a37e9ec5 |
| hovercard-subject-tag | pull_request:1317321286 |
| 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/103595/files |
| 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 | This brings pathlib in line with IEEE Std 1003.1-2017, where trailing slashes are meaningful to path resolution and should not be discarded. This is the last known bug in pathlib's path normali... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af |
| 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 | 99aab454e5ddc8df30805fb76c114c3008a15842 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width