[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping
Raymond Hettinger
report at bugs.python.org
Tue Jul 28 10:56:04 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
> if we have a class which inherits from both Set and int
This really seems like an invented problem rather than an actual problem.
> class A(collections.abc.Set, int): pass
Would anyone ever do this and be surprised the sets and ints don't combine perfectly?
If you must, add a footnote to the collections.abc entry for __ne__ noting that __ne__ is inherited. Or you can restore the definition of Set.__ne__ that was present in 3.4.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41416>
_______________________________________
More information about the Python-bugs-list
mailing list