Message369470
Frozensets disallow the .update and the .__ior__ methods from being used, but allows the |= operator, which I think is inconsistent with the disallowed methods†.
```
foo = frozenset()
print(foo) # frozenset()
foo.update({"hello"}) # AttributeError, expected
foo.__ior__({"hello"}) # AttributeError, expected
foo |= {"hello"} # No error
print(foo) # frozenset({"hello"})
``` |
|
Date |
User |
Action |
Args |
2020-05-20 19:28:14 | cs-cordero | set | recipients:
+ cs-cordero |
2020-05-20 19:28:14 | cs-cordero | set | messageid: <1590002894.78.0.324397414776.issue40702@roundup.psfhosted.org> |
2020-05-20 19:28:14 | cs-cordero | link | issue40702 messages |
2020-05-20 19:28:14 | cs-cordero | create | |
|