Skip to content

Conversation

@skirpichev
Copy link
Member

@skirpichevskirpichev commented Apr 25, 2025

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Copy link
Member

@picnixzpicnixz left a comment

Choose a reason for hiding this comment

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

Just some cosmetic nits.

skirpichevand others added 2 commits April 25, 2025 17:45
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@picnixz
Copy link
Member

So, we have some known buildbots issues. I'll wait for it to be solved and then once it's ok for them, I'll merge it.

@skirpichev
Copy link
MemberAuthor

Technically it's very trivial pr, yet I would appreciate a second look from someone.

Maybe we should be more vague and not define in any way normal/subnormal meaning (i.e. not reference sys.float_info). (Or mention this as CPython implementation detail.) E.g. should all Python implementations support subnormals?

Copy link
Member

@StanFromIrelandStanFromIreland left a comment

Choose a reason for hiding this comment

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

IMO the docs and implementation are fine, everything is explained well.

Copy link
MemberAuthor

@skirpichevskirpichev left a comment

Choose a reason for hiding this comment

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

Maybe we can replace "floating-point number" with just a "number" (as integers are automatically converted to floats)?

@skirpichev
Copy link
MemberAuthor

CC @serhiy-storchaka per experts index. See also issue thread.

@serhiy-storchakaserhiy-storchaka changed the title gh-132908: add math.normal/subnormal() functionsgh-132908: Add math.isnormal/issubnormal() functionsJun 2, 2025
Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

@serhiy-storchakaserhiy-storchaka merged commit 5f61cde into python:mainJun 2, 2025
39 checks passed
@skirpichevskirpichev deleted the isnormal-subnormal/132908 branch June 2, 2025 10:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@skirpichev@picnixz@serhiy-storchaka@StanFromIreland