https://github.com/python/cpython/commit/0b9146e90b4969af8cd6ed39c3d97bb71bfc6a7a commit: 0b9146e90b4969af8cd6ed39c3d97bb71bfc6a7a branch: main author: Rida Zouga <[email protected]> committer: ethanfurman <[email protected]> date: 2026-04-21T10:17:02-07:00 summary:
[Enum] Improve clarity of comparison sentence (GH-148753) Co-authored-by: Ethan Furman <[email protected]> files: M Doc/howto/enum.rst diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index 5260c2ca4add47..2fe5814bb04a73 100644 --- a/Doc/howto/enum.rst +++ b/Doc/howto/enum.rst @@ -371,7 +371,7 @@ Equality comparisons are defined though:: >>> Color.BLUE == Color.BLUE True -Comparisons against non-enumeration values will always compare not equal +Equality comparisons against non-enumeration values will always return ``False`` (again, :class:`IntEnum` was explicitly designed to behave differently, see below):: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
