gh-141218: Fix inaccurate object comparison documentation by mohsinm-dev · Pull Request #141221 · python/cpython

@mohsinm-dev

Changed "Objects of different types, except different numeric types, never
compare equal" to "Objects of different types, unless documented otherwise,
never compare equal" to account for documented exceptions like set/frozenset
comparisons.

OTheDev

@mohsinm-dev

skirpichev

picnixz

@mohsinm-dev @picnixz

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Dec 16, 2025
…onGH-141221)

(cherry picked from commit b372bd7)

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>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Dec 16, 2025
…onGH-141221)

(cherry picked from commit b372bd7)

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>

hugovk pushed a commit that referenced this pull request

Dec 16, 2025
…141221) (#142810)

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>

hugovk pushed a commit that referenced this pull request

Dec 16, 2025
…141221) (#142811)

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>