Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TkTech opened this issue May 18, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@TkTech
Copy link
Owner

TkTech commented May 18, 2023

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.

@TkTech TkTech added enhancement New feature or request good first issue Good for newcomers labels May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant