[issue8743] set() operators don't work with collections.Set instances
Raymond Hettinger
report at bugs.python.org
Mon May 26 00:58:32 CEST 2014
Raymond Hettinger added the comment:
Added tests that include the pure python sets.Set(). Only the binary or/and/sub/xor methods are tested.
The comparison operators were designed to only interact with their own kind. A comment from Tim Peters explains the decision raise a TypeError instead of returning NotImplemented (it has unfortunate interactions with cmp()). At any rate, nothing good would come from changing that design decision now, so I'm leaving it alone to fade peacefully into oblivion.
----------
Added file: http://bugs.python.org/file35357/fix_set_abc3.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8743>
_______________________________________
More information about the Python-bugs-list
mailing list