Title: if path-parameter in functions like `replace` is a string-like object, the function treats each character as path element · Issue #176 · python-hyper/hyperlink · GitHub
Open Graph Title: if path-parameter in functions like `replace` is a string-like object, the function treats each character as path element · Issue #176 · python-hyper/hyperlink
X Title: if path-parameter in functions like `replace` is a string-like object, the function treats each character as path element · Issue #176 · python-hyper/hyperlink
Description: >>> u DecodedURL(url=URL.from_text('https://example.com/api/v1/webui')) >>> u.replace(path="support/woo") DecodedURL(url=URL.from_text('https://example.com/s/u/p/p/o/r/t///w/o/o'')) I know path is supposed to be an iterable, not a stri...
Open Graph Description: >>> u DecodedURL(url=URL.from_text('https://example.com/api/v1/webui')) >>> u.replace(path="support/woo") DecodedURL(url=URL.from_text('https://example.com/s/u/p/p/o/r/t///w/o/o'')) I know path i...
X Description: >>> u DecodedURL(url=URL.from_text('https://example.com/api/v1/webui')) >>> u.replace(path="support/woo") DecodedURL(url=URL.from_text('https://example.com/s...
Opengraph URL: https://github.com/python-hyper/hyperlink/issues/176
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"if path-parameter in functions like `replace` is a string-like object, the function treats each character as path element","articleBody":"```\r\n>>> u\r\nDecodedURL(url=URL.from_text('https://example.com/api/v1/webui'))\r\n\r\n>>> u.replace(path=\"support/woo\")\r\nDecodedURL(url=URL.from_text('https://example.com/s/u/p/p/o/r/t/%2F/w/o/o''))\r\n```\r\n\r\nI know `path` is supposed to be an iterable, not a string in this case, i.e. I should have done `path=[\"support\", \"woo\"]`. But maybe it would be more user friendly to have the internal logic be something like:\r\n\r\n```\r\nif isinstance(path, str):\r\n path = path.split('/')\r\n```","author":{"url":"https://github.com/con-f-use","@type":"Person","name":"con-f-use"},"datePublished":"2021-09-11T10:44:07Z","url":"https://github.com/python-hyper/hyperlink/issues/176"}
| 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:d7071b29-678d-847d-ffdf-227aeab64f66 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCEA:18FC15:1BF0C91:26F0B15:6B06E7A6 |
| html-safe-nonce | 305b00202f20bb4ced38973061dc0eb3b102a981fa4267667ee61c4ecebe1197 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0VBOjE4RkMxNToxQkYwQzkxOjI2RjBCMTU6NkIwNkU3QTYiLCJ2aXNpdG9yX2lkIjoiMzY4NTYwMzAzMjk2NTc2OTEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 28a8b9deba37172f2c4fc630ed787df6f5acf6a8d27567f8c45bc404ba48a405 |
| hovercard-subject-tag | issue:993810896 |
| 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-hyper/hyperlink/176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31b9edfe1fb09596430c68c506fcb403f26d2a5e41906840d6583fa054c4aaeb/python-hyper/hyperlink/issues/176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31b9edfe1fb09596430c68c506fcb403f26d2a5e41906840d6583fa054c4aaeb/python-hyper/hyperlink/issues/176 |
| og:image:alt | >>> u DecodedURL(url=URL.from_text('https://example.com/api/v1/webui')) >>> u.replace(path="support/woo") DecodedURL(url=URL.from_text('https://example.com/s/u/p/p/o/r/t///w/o/o'')) I know path i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | con-f-use |
| hostname | github.com |
| expected-hostname | github.com |
| None | 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/hyperlink git https://github.com/python-hyper/hyperlink.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 82321340 |
| octolytics-dimension-repository_nwo | python-hyper/hyperlink |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82321340 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyperlink |
| 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 | af8913cd0f2f77c41796be449ac66a9108825abc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width