hyperlink icon indicating copy to clipboard operation
hyperlink copied to clipboard

Correct comparison with urlparse

Open merwok opened this issue 5 months ago • 0 comments

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

merwok avatar Feb 09 '24 02:02 merwok