]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141218: Fix inaccurate object comparison documentation (#141221)
authorMohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Tue, 16 Dec 2025 11:46:42 +0000 (16:46 +0500)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 11:46:42 +0000 (13:46 +0200)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Doc/library/stdtypes.rst

index 327a7037aee0d4a543db23761988412cbcec77b4..f33b73238ec8b33d533845d5952b83c747b327d5 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