Skip to content

gh-143006: add type check in float_richcompare()#143053

Closed
skirpichev wants to merge 2 commits into
python:mainfrom
skirpichev:typecheck-in-float_richcompare/143006
Closed

gh-143006: add type check in float_richcompare()#143053
skirpichev wants to merge 2 commits into
python:mainfrom
skirpichev:typecheck-in-float_richcompare/143006

Conversation

@skirpichev

@skirpichev skirpichev commented Dec 21, 2025

Copy link
Copy Markdown
Member

@skirpichev

Copy link
Copy Markdown
Member Author

I'm not sure if it worth. But the check is cheap (when it is False).

See issue thread for alternative.

Comment thread Objects/floatobject.c Outdated
Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vstinner

Copy link
Copy Markdown
Member

@serhiy-storchaka: Do you want to double check the fix?

@skirpichev skirpichev closed this Dec 22, 2025
@skirpichev skirpichev deleted the typecheck-in-float_richcompare/143006 branch December 22, 2025 23:51
@skirpichev

Copy link
Copy Markdown
Member Author

Closed in favor of other approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants