[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2022-01-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +29195 pull_request: https://github.com/python/cpython/pull/21628 ___ Python tracker ___

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: If you want to add back the __ne__() method, that would be fine. FWIW, "class A(collections.abc.Set, int)" seems pretty exotic to me. I wouldn't have expected that work out well. -- ___ Python tracker

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg374497 ___ Python tracker ___ ___ Python-bugs-list

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger 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

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : According to the documentation [1] abstract classes collections.abc.Set and collections.abc.Mapping provide mixin method __ne__. But implementations of __ne__ in these classes were removed in 3.4 (see issue21408), so the default implementation is

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +20795 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21628 ___ Python tracker

[issue41416] Restore default implementation of __ne__ in mixins Set and Mapping

2020-07-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -20795 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: