diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2021-07-16 11:48:20 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-16 11:48:20 (GMT) |
| commit | c3007ab3c6cb384203bac8aa64d89c4b42f671a1 (patch) | |
| tree | c0829b008569a28ec516b6e13820aaed7210e6c8 /Python/hashtable.c | |
| parent | 37686f78ccef5f1cf4776419a4270cf0ea7eadf0 (diff) | |
| download | cpython-c3007ab3c6cb384203bac8aa64d89c4b42f671a1.zip cpython-c3007ab3c6cb384203bac8aa64d89c4b42f671a1.tar.gz cpython-c3007ab3c6cb384203bac8aa64d89c4b42f671a1.tar.bz2 | |
[3.10] bpo-44636: Collapse union of equal types (GH-27178) (GH-27181)
The result of `int | int` is now `int`.
Fix comparison of the union type with non-hashable objects.
`int | str == {}` no longer raises a TypeError.
(cherry picked from commit d9f923280f204204f8703756aef4f655b579b4b8)
Diffstat (limited to 'Python/hashtable.c')
0 files changed, 0 insertions, 0 deletions
