Skip to content

gh-135853: add math.fmax and math.fmin #135888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 12, 2025

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Jun 24, 2025

I've added math.fmin and math.fmax as I think it'd be nice to have the NaN handling as per C99. I didn't make those functions generic or accept any iterable argument.

WDYT of this proposal @skirpichev @rhettinger?


📚 Documentation preview 📚: https://cpython-previews--135888.org.readthedocs.build/

@picnixz picnixz changed the title gh-135853: add math.fmax and math.fmin gh-135853: add math.fmax and math.fmin [PoC] Jun 24, 2025
@picnixz picnixz force-pushed the feat/math/fmin-fmax-135853 branch from 0831229 to afb0a91 Compare June 24, 2025 14:30
@picnixz picnixz changed the title gh-135853: add math.fmax and math.fmin [PoC] gh-135853: add math.fmax and math.fmin Jun 24, 2025
@picnixz picnixz marked this pull request as ready for review June 24, 2025 15:10
@picnixz picnixz requested a review from skirpichev June 24, 2025 15:10
@picnixz picnixz requested a review from rhettinger June 24, 2025 15:10
@picnixz picnixz requested a review from vstinner June 27, 2025 13:51
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
@picnixz picnixz self-assigned this Jun 27, 2025
@picnixz picnixz enabled auto-merge (squash) July 12, 2025 11:06
@picnixz picnixz merged commit 2301cdb into python:main Jul 12, 2025
41 checks passed
@picnixz picnixz deleted the feat/math/fmin-fmax-135853 branch July 12, 2025 12:06
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
picnixz added a commit to picnixz/cpython that referenced this pull request Jul 13, 2025
Sign up for free to 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.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy