From: Rida Zouga <96395950+ZougaRida@users.noreply.github.com> Date: Tue, 21 Apr 2026 17:17:02 +0000 (+0100) Subject: [Enum] Improve clarity of comparison sentence (GH-148753) X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0b9146e90b4969af8cd6ed39c3d97bb71bfc6a7a;p=thirdparty%2FPython%2Fcpython.git [Enum] Improve clarity of comparison sentence (GH-148753) Co-authored-by: Ethan Furman --- diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index 5260c2ca4add..2fe5814bb04a 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)::