This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cs-cordero
Recipients cs-cordero
Date 2020-05-20.19:28:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590002894.78.0.324397414776.issue40702@roundup.psfhosted.org>
In-reply-to
Content
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"})
```
History
Date User Action Args
2020-05-20 19:28:14cs-corderosetrecipients: + cs-cordero
2020-05-20 19:28:14cs-corderosetmessageid: <1590002894.78.0.324397414776.issue40702@roundup.psfhosted.org>
2020-05-20 19:28:14cs-corderolinkissue40702 messages
2020-05-20 19:28:14cs-corderocreate