◐ Shell
clean mode source ↗

gh-141004: soft-deprecate Py_INFINITY macro by skirpichev · Pull Request #141033 · python/cpython

Conversation

@skirpichev

@skirpichev skirpichev commented

Nov 5, 2025

edited by github-actions Bot

Loading

@skirpichev

Waiting for feedback in the issue thread. I'm planning soft-deprecate also Py_NAN.

vstinner

Co-authored-by: Victor Stinner <vstinner@python.org>

@skirpichev

vstinner

Choose a reason for hiding this comment

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

LGTM

ZeroIntensity

Choose a reason for hiding this comment

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

I don't have much of an opinion here, I think this is fine. Would you mind creating a PR for <3.15 documenting this without the deprecation?

@ZeroIntensity

(Let's also wait on the C API WG before landing this one.)

@skirpichev

Would you mind creating a PR for <3.15 documenting this without the deprecation?

See #141145.

skirpichev

@vstinner

@skirpichev skirpichev deleted the soft-deprecate-Py_INFINITY/141004 branch

November 12, 2025 12:47

StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request

Dec 6, 2025
Co-authored-by: Victor Stinner <vstinner@python.org>