https://github.com/python/cpython/commit/c2d34a13965574a06910b37f51c5793b75a9c639 commit: c2d34a13965574a06910b37f51c5793b75a9c639 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2025-12-16T11:52:38Z summary:
[3.13] gh-141218: Fix inaccurate object comparison documentation (GH-141221) (#142811) Co-authored-by: Mohsin Mehmood <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> files: M Doc/library/stdtypes.rst diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index f07930b628a09a..1b04f76c361a87 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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 _______________________________________________ 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]
