packages: make hash() consistent and incl features#370
Merged
abn merged 4 commits intopython-poetry:mainfrom May 26, 2022
Merged
packages: make hash() consistent and incl features#370abn merged 4 commits intopython-poetry:mainfrom
abn merged 4 commits intopython-poetry:mainfrom
Conversation
radoering
previously requested changes
May 24, 2022
dimbleby
added a commit
to dimbleby/poetry
that referenced
this pull request
May 25, 2022
anticipating that <python-poetry/poetry-core#370> will remove _extras
Member
|
Just a quick thought when deciding what to put into the hash for each class. In my understanding, it's not required to consider each attribute in the hash even if it is considered for equality. E.g., consider the following slightly exaggerated example: Output: It might be inperformant, but it seems to be valid even though every instance has the same hash. Thus, I tend to say we have to decide for each attribute:
In other words, two (simplified) rules that must not be broken:
|
Member
Author
|
Split out the attribute change to #375 |
81ae512 to
a0e4c3f
Compare
abn
commented
May 26, 2022
a0e4c3f to
faf9f39
Compare
faf9f39 to
40931b9
Compare
40931b9 to
f95e185
Compare
Co-authored-by: Arun Babu Neelicattu <[email protected]>
…for consistency with other properties
f95e185 to
986f175
Compare
|
Kudos, SonarCloud Quality Gate passed! |
abn
commented
May 26, 2022
Member
Author
abn
left a comment
There was a problem hiding this comment.
Changes look good to me. Someone else might need to approve.
radoering
approved these changes
May 26, 2022
Merged
maksbotan
added a commit
to maksbotan/poetry-core
that referenced
this pull request
Aug 7, 2022
This is a backport of 7e09102 from master (PR python-poetry#370).
2 tasks
yggi49
added a commit
to yggi49/poetry-core
that referenced
this pull request
Nov 12, 2022
Instead of relying on regular expressions, this patch leverages Python’s builtin `email.utils.parseaddr()` functionality to parse an RFC-822-compliant email address string into its name and address parts. This should also resolve issues with special characters in the name part; see for example Poetry issues python-poetry#370 and python-poetry#798. python-poetry/poetry#370 python-poetry/poetry#798
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








No description provided.