Title: repr() of a relative URL does not round-trip: eval(repr(u)) != u · Issue #210 · python-hyper/hyperlink · GitHub
Open Graph Title: repr() of a relative URL does not round-trip: eval(repr(u)) != u · Issue #210 · python-hyper/hyperlink
X Title: repr() of a relative URL does not round-trip: eval(repr(u)) != u · Issue #210 · python-hyper/hyperlink
Description: For a URL without a scheme, reading back its printed form gives an unequal URL: >>> from hyperlink import URL >>> u = URL.from_text("a b") >>> u URL.from_text('a b') >>> URL.from_text("a b") == u False With a scheme it works: URL.fro...
Open Graph Description: For a URL without a scheme, reading back its printed form gives an unequal URL: >>> from hyperlink import URL >>> u = URL.from_text("a b") >>> u URL.from_text('a b') >>> URL.from_text("a b") ==...
X Description: For a URL without a scheme, reading back its printed form gives an unequal URL: >>> from hyperlink import URL >>> u = URL.from_text("a b") >>> u URL.from_text(&...
Opengraph URL: https://github.com/python-hyper/hyperlink/issues/210
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"repr() of a relative URL does not round-trip: eval(repr(u)) != u","articleBody":"For a URL without a scheme, reading back its printed form gives an unequal URL:\n\n```python\n>>> from hyperlink import URL\n>>> u = URL.from_text(\"a b\")\n>>> u\nURL.from_text('a%20b')\n>>> URL.from_text(\"a%20b\") == u\nFalse\n```\n\nWith a scheme it works: `URL.from_text(\"http://example.com/a b\")` prints back unchanged and compares equal.\n\nCause: in `_encode_path_parts`, the first segment of a scheme-less path is encoded without passing `maximal`, so `to_text()` encodes it fully. \n","author":{"url":"https://github.com/ines-besrour","@type":"Person","name":"ines-besrour"},"datePublished":"2026-11-05T15:03:24Z","url":"https://github.com/python-hyper/hyperlink/issues/210"}
| 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:c73e0b30-6142-42cf-1644-f0418638dd46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA78:1C761C:CA6DA7:1137DDB:6B06E7A5 |
| html-safe-nonce | 57a2f0957fdcbfd71f0fc35a46547a7e70b7309afaf5dcfd95ca0c5c9567b764 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTc4OjFDNzYxQzpDQTZEQTc6MTEzN0REQjo2QjA2RTdBNSIsInZpc2l0b3JfaWQiOiI1NTkyNTQyMTI4NDA1NjY5Nzk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d71124297207bfbdfc8cb04ca3b0198209dfcbb66ca2a38284fc91dc00c181fb |
| hovercard-subject-tag | issue:6225782884 |
| 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/210/issue_layout |
| twitter:image | https://opengraph.githubassets.com/755daa673948b3817e71771b88ae8ead2ca29108a05c1652ea863c7d19f6ef13/python-hyper/hyperlink/issues/210 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/755daa673948b3817e71771b88ae8ead2ca29108a05c1652ea863c7d19f6ef13/python-hyper/hyperlink/issues/210 |
| og:image:alt | For a URL without a scheme, reading back its printed form gives an unequal URL: >>> from hyperlink import URL >>> u = URL.from_text("a b") >>> u URL.from_text('a b') >>> URL.from_text("a b") ==... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ines-besrour |
| 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