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

specifiers: don't rely on hashes for equality #284

Merged
merged 1 commit into from Mar 27, 2020

Conversation

xavfernandez
Copy link
Member

Following https://github.com/pypa/packaging/pull/283/files#r398930130

I'm really sorry to nag you with this but relying on hashes to check equality feels really wrong to me.

It's like saying that 0 equals 9223372036854775804 because

>>> hash(0) == hash(9223372036854775804)
True

@brettcannon brettcannon requested a review from di March 27, 2020 16:46
@brettcannon brettcannon merged commit ed0a58f into pypa:master Mar 27, 2020
@xavfernandez xavfernandez deleted the canonical_spec branch March 27, 2020 21:49
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

Successfully merging this pull request may close these issues.

None yet

3 participants