[issue33874] dictviews set operations do not follow pattern of set or frozenset

Forest report at bugs.python.org
Fri Jun 15 22:44:36 EDT 2018


Forest <fgregg at gmail.com> added the comment:

Issue https://bugs.python.org/issue24413 also flags a difference in the behavior between dictviews and sets/frozensets.

"for non-iterable object x, set().__or__(x) raises NotImplementedError, but {}.keys().__or__(x) raises TypeError"

Issue https://bugs.python.org/issue33874 added a number of tests for dictview set operators, but none covering the examples raised here.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33874>
_______________________________________


More information about the Python-bugs-list mailing list