diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-16 09:02:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-16 09:02:59 (GMT) |
commit | 705988056e028bab3dbc5cff3671a8ddefc88ec7 (patch) | |
tree | 6ad37f1b6c63654ff93e52c45dc2b4924f15ba54 /Misc | |
parent | 6aa59c68dc7910c0675ad23c1f9d88edfb81dfcb (diff) | |
download | cpython-705988056e028bab3dbc5cff3671a8ddefc88ec7.zip cpython-705988056e028bab3dbc5cff3671a8ddefc88ec7.tar.gz cpython-705988056e028bab3dbc5cff3671a8ddefc88ec7.tar.bz2 |
bpo-44646: Fix the hash of the union type. (GH-27179) (#27180)
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 aeaa553d650786afc6e68df1f4813ae1a5b71d05)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2021-07-16-09-59-13.bpo-44646.Yb6s05.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-07-16-09-59-13.bpo-44646.Yb6s05.rst b/Misc/NEWS.d/next/Core and Builtins/2021-07-16-09-59-13.bpo-44646.Yb6s05.rst new file mode 100644 index 0000000..0e28eac --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-07-16-09-59-13.bpo-44646.Yb6s05.rst @@ -0,0 +1,2 @@ +Fix the hash of the union type: it no longer depends on the order of +arguments. |