]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-141218: Fix inaccurate object comparison documentation (GH-141221) (#142810)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 16 Dec 2025 11:52:06 +0000 (12:52 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 11:52:06 +0000 (11:52 +0000)
Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Doc/library/stdtypes.rst

index c71de748e453f64a96736c81715402c28b755101..2a31bc04f6393f22dc7d1282a5e5a68da7ae98da 100644 (file)
@@ -164,7 +164,7 @@ This table summarizes the comparison operations:
    pair: object; numeric
    pair: objects; comparing
 
-Objects of different types, except different numeric types, never compare equal.
+Unless stated otherwise, objects of different types never compare equal.
 The ``==`` operator is always defined but for some object types (for example,
 class objects) is equivalent to :keyword:`is`. The ``<``, ``<=``, ``>`` and ``>=``
 operators are only defined where they make sense; for example, they raise a