Skip to content

Support getting a urllib.parse.ParseResult namedtuple for drop-in compatibility. #2

Open
@TkTech

Description

@TkTech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions