Skip to content

gh-85588: Restore the __ne__() method in Set and Mapping#141366

Open
serhiy-storchaka wants to merge 1 commit intopython:mainfrom
serhiy-storchaka:collections-abc-Set-Mapping-ne
Open

gh-85588: Restore the __ne__() method in Set and Mapping#141366
serhiy-storchaka wants to merge 1 commit intopython:mainfrom
serhiy-storchaka:collections-abc-Set-Mapping-ne

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Nov 10, 2025

Set it to object.ne.
This guarantees that the != operator is consistent with the == operator, even if the ne method was defined in other parent class.

Set it to object.__ne__.
This guarantees that the != operator is consistent with the == operator,
even if the __ne__ method was defined in other parent class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants