hyperlink
hyperlink copied to clipboard
Correct comparison with urlparse
Hello!
Just a thought from reading your docs: it’s not quite accurate to say that urlparse doesn‘t have a URL type, given that it does return a named tuple, with instances being immutable and having a _replace method for derivation.
It’s not a full modern class with nice methods, and it doesn’t change the fact that there is no validation in urllib.parse, but it’s better than strings or dicts!
Ref: https://docs.python.org/3/library/urllib.parse.html#structured-parse-results