Skip to content

bpo-44646: Fix the hash of the union type.#27179

Merged
ambv merged 1 commit into
python:mainfrom
serhiy-storchaka:union-hash
Jul 16, 2021
Merged

bpo-44646: Fix the hash of the union type.#27179
ambv merged 1 commit into
python:mainfrom
serhiy-storchaka:union-hash

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Jul 16, 2021

It no longer depends on the order of arguments.
hash(int | str) == hash(str | int)

https://bugs.python.org/issue44646

It no longer depends on the order of arguments.
hash(int | str) == hash(str | int)
@bedevere-bot
Copy link
Copy Markdown

@ambv: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @serhiy-storchaka for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jul 16, 2021
@bedevere-bot
Copy link
Copy Markdown

GH-27180 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 16, 2021
It no longer depends on the order of arguments.
hash(int | str) == hash(str | int)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
(cherry picked from commit aeaa553)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
ambv pushed a commit that referenced this pull request Jul 16, 2021
It no longer depends on the order of arguments.
hash(int | str) == hash(str | int)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
(cherry picked from commit aeaa553)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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.

6 participants