Title: bpo-44412: add `os.path.fileuri()` function. by barneygale · Pull Request #26708 · python/cpython · GitHub
Open Graph Title: bpo-44412: add `os.path.fileuri()` function. by barneygale · Pull Request #26708 · python/cpython
X Title: bpo-44412: add `os.path.fileuri()` function. by barneygale · Pull Request #26708 · python/cpython
Description: One of only three pieces of functionality that's available in the object-oriented pathlib library, but not the traditional os/os.path modules. By moving this functionality to low-level modules, we make progress towards being able to remove pathlib._Flavour in bpo-44136 and ultimately unlock pathlib's OOPy potential in bpo-24132. This commit also adjusts urllib.request.pathname2url() to use the new implementation on Windows. On other platforms, the existing implementation is retained due to its simplicity and its highly questionable support for relative file URIs (like 'file:photos/foo.txt') https://bugs.python.org/issue44412
Open Graph Description: One of only three pieces of functionality that's available in the object-oriented pathlib library, but not the traditional os/os.path modules. By moving this functionality to low-level modules,...
X Description: One of only three pieces of functionality that's available in the object-oriented pathlib library, but not the traditional os/os.path modules. By moving this functionality to low-level modu...
Opengraph URL: https://github.com/python/cpython/pull/26708
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1eb9f422-6ad2-5700-de0f-2cd5f082be26 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A500:22DB0A:1540B66:1E04499:69691C82 |
| html-safe-nonce | bfaaf885a3d4f87136db7e1c3fbd17b0515fd3b21a82554f98be53ffbc3164c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTAwOjIyREIwQToxNTQwQjY2OjFFMDQ0OTk6Njk2OTFDODIiLCJ2aXNpdG9yX2lkIjoiNTI0NTE3MTY3MTc2MzU5MDI3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 06ed1cc5e4dda1beb2d7f67dd9d22fbf71834299e22a7d30bccfa9bfb4c6886c |
| hovercard-subject-tag | pull_request:669083726 |
| 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/26708/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 | One of only three pieces of functionality that's available in the object-oriented pathlib library, but not the traditional os/os.path modules. By moving this functionality to low-level modules,... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width