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 object comparisons in the Python implementation #10

Open
anjackson opened this issue Jun 17, 2020 · 0 comments
Open

Support object comparisons in the Python implementation #10

anjackson opened this issue Jun 17, 2020 · 0 comments
Assignees

Comments

@anjackson
Copy link
Member

Currently, equality testing does not work as expected unless parsed URLs are cast to strings:

whatwg(parse_url("http://www.com/") != whatwg(parse_url("http://www.com:80/")
str(whatwg(parse_url("http://www.com/")) == str(whatwg(parse_url("http://www.com:80/"))

The proposal is that @anjackson will implement __eq__ and __ne__ so that URLs can be compared for equality directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant