Open
Description
We can populate the namedtuple
https://docs.python.org/3/library/urllib.parse.html#urllib.parse.ParseResult so that our parse results are identical to those returned by urllib.parse.urlparse()
.
This will be slower than using the native URL object if you just need 1 or 2 fields, and probably better if you access most of the fields, many times. However, it will allow existing code to become "correct" with fewer changes.