Skip to content

Commit b372bd7

Browse files
mohsinm-devpicnixz
andauthored
gh-141218: Fix inaccurate object comparison documentation (#141221)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent a15bd21 commit b372bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ This table summarizes the comparison operations:
164164
pair: object; numeric
165165
pair: objects; comparing
166166

167-
Objects of different types, except different numeric types, never compare equal.
167+
Unless stated otherwise, objects of different types never compare equal.
168168
The ``==`` operator is always defined but for some object types (for example,
169169
class objects) is equivalent to :keyword:`is`. The ``<``, ``<=``, ``>`` and ``>=``
170170
operators are only defined where they make sense; for example, they raise a

0 commit comments

Comments
 (0)