Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.8] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interface (GH-21033)#21221

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedJun 29, 2020
edited
Loading

Thehash() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commitb30ee26)

Co-authored-by: Ravi Teja Prvteja92@gmail.com

https://bugs.python.org/issue41004

Automerge-Triggered-By:@ericvsmith

pythonGH-21033)The __hash__() methods of classes IPv4Interface and IPv6Interface had issueof generating constant hash values of 32 and 128 respectively causing hash collisions.The fix uses the hash() function to generate hash values for the objectsinstead of XOR operation(cherry picked from commitb30ee26)Co-authored-by: Ravi Teja P <rvteja92@gmail.com>
@miss-islington
Copy link
ContributorAuthor

@rvteja92 and@ericvsmith: Status check is done, and it's a success ✅ .

@miss-islingtonmiss-islington merged commitdc8ce8e intopython:3.8Jun 29, 2020
@miss-islingtonmiss-islington deleted the backport-b30ee26-3.8 branchJune 29, 2020 18:12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ericvsmithericvsmithericvsmith approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@miss-islington@ericvsmith@the-knights-who-say-ni@bedevere-bot@rvteja92

[8]ページ先頭

©2009-2025 Movatter.jp