8000 gh-72971: Clarify the special no-TypeError behavior for equality by Gouvernathor · Pull Request #110729 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-72971: Clarify the special no-TypeError behavior for equality #110729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Restore NotImplemented link
  • Loading branch information
erlend-aasland authored Mar 3, 2024
commit 820c5389356f5f29bacba6553c647dacc3aa23b0
2 changes: 1 addition & 1 deletion Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ Basic customization
the left operand's method has priority. Virtual subclassing is
not considered.

When no appropriate method returns any value other than :data:`!NotImplemented`, the
When no appropriate method returns any value other than :data:`NotImplemented`, the
``==`` and ``!=`` operators will fall back to ``is`` and ``is not``, respectively.

.. method:: object.__hash__(self)
Expand Down
0