diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-07-16 09:49:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-16 09:49:33 (GMT) |
commit | d9f923280f204204f8703756aef4f655b579b4b8 (patch) | |
tree | a7f4bae4b05868d51cbb81a5faa1812f1df47106 /Python/ast.c | |
parent | aeaa553d650786afc6e68df1f4813ae1a5b71d05 (diff) | |
download | cpython-d9f923280f204204f8703756aef4f655b579b4b8.zip cpython-d9f923280f204204f8703756aef4f655b579b4b8.tar.gz cpython-d9f923280f204204f8703756aef4f655b579b4b8.tar.bz2 |
bpo-44636: Collapse union of equal types (GH-27178)
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.
Diffstat (limited to 'Python/ast.c')
0 files changed, 0 insertions, 0 deletions