Open nicktimko opened 5 years ago
We use urlsplit
from standard lib so we likely need to wait for https://github.com/python/cpython/issues/99962
⁂ even more niche "issue":
>>> yarl.URL("http://example.com:80/") == yarl.URL("http://example.com:/") False
We don't do any port normalizing in __eq__
or __hash__
__eq__
or __hash__
as it might be considered a breaking change.
I saw https://bugs.python.org/issue37969 and was curious how YARL handles an empty querystring given that RFC 3986 § 6.2.3 says
† Is there a separate spec for HTTP that says you can? Would this impact a generic URL parser anyways?
And I can't see a way to
yarl.URL.build
to end up with a blank (but delimited) querystring/fragmentWondering if this would just be a 'won't-fix' in YARL, or if there's some clean design solution. Also if any URL-savants wanted to render an opinion in the bugs.python.org issue.
⁂ even more niche "issue":