Skip to content

[3.10] bpo-44646: Fix the hash of the union type. (GH-27179)#27180

Merged
ambv merged 1 commit into
python:3.10from
miss-islington:backport-aeaa553-3.10
Jul 16, 2021
Merged

[3.10] bpo-44646: Fix the hash of the union type. (GH-27179)#27180
ambv merged 1 commit into
python:3.10from
miss-islington:backport-aeaa553-3.10

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented 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

https://bugs.python.org/issue44646

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>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka and @ambv: Status check is done, and it's a success ✅ .

2 similar comments
@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka and @ambv: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka and @ambv: Status check is done, and it's a success ✅ .

@ambv ambv merged commit 7059880 into python:3.10 Jul 16, 2021
@bedevere-bot
Copy link
Copy Markdown

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

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.

5 participants