Skip to content

Ensure equal versions have equal hashes#283

Merged
tomschr merged 3 commits intopython-semver:masterfrom
sbrudenell:master
Oct 20, 2020
Merged

Ensure equal versions have equal hashes#283
tomschr merged 3 commits intopython-semver:masterfrom
sbrudenell:master

Conversation

@sbrudenell
Copy link
Contributor

Per the python datamodel, a == b implies hash(a) == hash(b). The current implementation of VersionInfo.__hash__ includes the build, which isn't used for equality.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Not a bug, but increases or improves in value, quality, desirability, or attractiveness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants