[issue24413] Inconsistent behavior between set and dict_keys/dict_items: for non-iterable object x, set().__or__(x) raises NotImplementedError, but {}.keys().__or__(x) raises TypeError
Serhiy Storchaka
report at bugs.python.org
Wed Aug 7 03:16:04 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
set.update() accepts arbitrary iterable, but set.__or__() requires a set or frozenset.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24413>
_______________________________________
More information about the Python-bugs-list
mailing list